github.com/rita33cool1/iot-system-gateway@v0.0.0-20200911033302-e65bde238cc5/docker-engine/errdefs/defs.go (about) 1 package errdefs // import "github.com/docker/docker/errdefs" 2 3 // ErrNotFound signals that the requested object doesn't exist 4 type ErrNotFound interface { 5 NotFound() 6 } 7 8 // ErrInvalidParameter signals that the user input is invalid 9 type ErrInvalidParameter interface { 10 InvalidParameter() 11 } 12 13 // ErrConflict signals that some internal state conflicts with the requested action and can't be performed. 14 // A change in state should be able to clear this error. 15 type ErrConflict interface { 16 Conflict() 17 } 18 19 // ErrUnauthorized is used to signify that the user is not authorized to perform a specific action 20 type ErrUnauthorized interface { 21 Unauthorized() 22 } 23 24 // ErrUnavailable signals that the requested action/subsystem is not available. 25 type ErrUnavailable interface { 26 Unavailable() 27 } 28 29 // ErrForbidden signals that the requested action cannot be performed under any circumstances. 30 // When a ErrForbidden is returned, the caller should never retry the action. 31 type ErrForbidden interface { 32 Forbidden() 33 } 34 35 // ErrSystem signals that some internal error occurred. 36 // An example of this would be a failed mount request. 37 type ErrSystem interface { 38 ErrSystem() 39 } 40 41 // ErrNotModified signals that an action can't be performed because it's already in the desired state 42 type ErrNotModified interface { 43 NotModified() 44 } 45 46 // ErrAlreadyExists is a special case of ErrConflict which signals that the desired object already exists 47 type ErrAlreadyExists interface { 48 AlreadyExists() 49 } 50 51 // ErrNotImplemented signals that the requested action/feature is not implemented on the system as configured. 52 type ErrNotImplemented interface { 53 NotImplemented() 54 } 55 56 // ErrUnknown signals that the kind of error that occurred is not known. 57 type ErrUnknown interface { 58 Unknown() 59 } 60 61 // ErrCancelled signals that the action was cancelled. 62 type ErrCancelled interface { 63 Cancelled() 64 } 65 66 // ErrDeadline signals that the deadline was reached before the action completed. 67 type ErrDeadline interface { 68 DeadlineExceeded() 69 } 70 71 // ErrDataLoss indicates that data was lost or there is data corruption. 72 type ErrDataLoss interface { 73 DataLoss() 74 }