github.com/xmidt-org/webpa-common@v1.11.9/device/errors.go (about) 1 package device 2 3 import ( 4 "errors" 5 ) 6 7 var ( 8 ErrorMissingDeviceNameContext = errors.New("Missing device ID in request context") 9 ErrorMissingSecureContext = errors.New("Missing security information in request context") 10 ErrorMissingDeviceNameHeader = errors.New("Missing device name header") 11 ErrorMissingDeviceNameVar = errors.New("Missing device name path variable") 12 ErrorMissingPathVars = errors.New("Missing URI path variables") 13 ErrorInvalidDeviceName = errors.New("Invalid device name") 14 ErrorDeviceNotFound = errors.New("The device does not exist") 15 ErrorNonUniqueID = errors.New("More than once device with that identifier is connected") 16 ErrorDuplicateKey = errors.New("That key is a duplicate") 17 ErrorDuplicateDevice = errors.New("That device is already in this registry") 18 ErrorInvalidTransactionKey = errors.New("Transaction keys must be non-empty strings") 19 ErrorNoSuchTransactionKey = errors.New("That transaction key is not registered") 20 ErrorTransactionAlreadyRegistered = errors.New("That transaction is already registered") 21 ErrorTransactionCancelled = errors.New("The transaction has been cancelled") 22 ErrorResponseNoContents = errors.New("The response has no contents") 23 ErrorDeviceBusy = errors.New("That device is busy") 24 ErrorDeviceClosed = errors.New("That device has been closed") 25 ErrorTransactionsClosed = errors.New("Transactions are closed for that device") 26 ErrorTransactionsAlreadyClosed = errors.New("That Transactions is already closed") 27 ErrorDeviceFilteredOut = errors.New("Device blocked from connecting due to filters") 28 )