Enum Constant and Description |
---|
AssetCategoryIdInUse
Attempting to create a new asset category with an id already in use
|
AssetIdInUse
Attempting to create a new asset that conflicts with an existing one
|
AssetTypeNotAllowed
Attempting to create a new asset in a category that does not allow the
type
|
DeuplicateSiteToken
Duplicate site token
|
DeviceAlreadyAssigned
Attempting to create a new assignment for a device with an active
assignment
|
DeviceCanNotBeDeletedIfAssigned
Attempting to delete a device that is currently assigned
|
DeviceCommandExists
Attempting to create a new command that duplicates an existing command
|
DeviceElementMappingDoesNotExist
Attempting to refrence a device element mapping that does not exist
|
DeviceElementMappingExists
Attempting to create a device element mapping for a path that is already
mapped
|
DeviceHardwareIdCanNotBeChanged
Attempting to change the hardware id of an existing device
|
DeviceNotAssigned
Operation assumes device is assigned but no assignment exists
|
DeviceParentMappingExists
Attempting to create a device element mapping for a device that is
already mapped
|
DeviceSiteCanNotBeChangedIfAssigned
Attempting to change site for device that is currently assigned
|
DuplicateAuthority
Authority name already used
|
DuplicateBatchElement
Duplicate batch element
|
DuplicateBatchOperationToken
Duplicate batch operation token
|
DuplicateDeviceAssignment
Duplicate device assignment token
|
DuplicateDeviceGroupToken
Duplicate device group token
|
DuplicateDeviceSpecificationToken
Invalid device specification token
|
DuplicateHardwareId
Attempting to create a device with a duplicate hardware id
|
DuplicateId
Generic duplicate id error
|
DuplicateScheduledJobToken
Invalid scheduled job token
|
DuplicateScheduleToken
Invalid schedule token
|
DuplicateStreamId
Attempting to create a device stream with a stream id already in use
|
DuplicateTenantGroupId
Attempting to create a tenant group with an id already in use
|
DuplicateTenantId
Attempting to create a tenant with an id already in use
|
DuplicateUser
Username already used
|
DuplicateZoneToken
Duplicate zone token
|
GenericDeleteFailed
Generic delete failure message
|
IncompleteData
Some required data was missing
|
InvalidAssetCategoryId
Invalid asset category id
|
InvalidAssetId
Invalid asset id
|
InvalidAssetReferenceId
Invalid asset reference id
|
InvalidAuthority
Invalid authority reference
|
InvalidBatchElement
Invalid batch element
|
InvalidBatchOperationToken
Invalid batch operation token
|
InvalidCharsInStreamId
Attempting to create a stream id that contains invalid characters
|
InvalidDeviceAssignmentId
Invalid site assignment id
|
InvalidDeviceAssignmentToken
Invalid device assignment token
|
InvalidDeviceCommandToken
Invalid site token
|
InvalidDeviceEventId
Invalid device event id
|
InvalidDeviceGroupToken
Invalid device group token
|
InvalidDeviceSlotPath
Path references a non-existent slot or a device unit
|
InvalidDeviceSpecificationToken
Invalid device specification token
|
InvalidHardwareId
Invalid device hardware id
|
InvalidMetadataFieldName
Bad username
|
InvalidPassword
Bad password
|
InvalidScheduledJobToken
Invalid scheduled job token
|
InvalidScheduleToken
Invalid schedule token
|
InvalidSearchProviderId
Invalid search provider id
|
InvalidSiteToken
Invalid site token
|
InvalidStreamId
Attempting to access a device stream that does not exist
|
InvalidTenantAuthToken
Invalid tenant authentication token
|
InvalidTenantEngineCommand
Invalid tenant engine command
|
InvalidTenantEngineId
Invalid tenant engine reference
|
InvalidTenantGroupId
Invalid tenant group reference
|
InvalidTenantId
Invalid tenant reference
|
InvalidTenantTemplateId
Invalid tenant template id
|
InvalidUserInformation
One or more required user fields are missing
|
InvalidUsername
Bad username
|
InvalidZoneToken
Invalid zone token
|
MissingTenantAuthToken
Tenant authentication token not passed
|
NotAuthorizedForTenant
Tenant authentication token passed but tenant not authorized for user
|
NotLoggedIn
No user logged in for action that requires authorization
|
RequiredCommandParameterMissing
Operation assumes device is assigned but no assignment exists
|
Unknown
Error with no explanation
|
UnknownAssetType
Reference to an unknown asset type
|
ZoneDeleteFailed
Zone delete failure message
|
Modifier and Type | Method and Description |
---|---|
static ErrorCode |
fromCode(long code)
Look up the enum based on error code.
|
long |
getCode() |
java.lang.String |
getMessage() |
void |
setCode(long code) |
void |
setMessage(java.lang.String message) |
static ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode InvalidMetadataFieldName
public static final ErrorCode InvalidUsername
public static final ErrorCode InvalidPassword
public static final ErrorCode DuplicateUser
public static final ErrorCode InvalidUserInformation
public static final ErrorCode InvalidAuthority
public static final ErrorCode DuplicateAuthority
public static final ErrorCode NotLoggedIn
public static final ErrorCode InvalidTenantId
public static final ErrorCode InvalidTenantAuthToken
public static final ErrorCode MissingTenantAuthToken
public static final ErrorCode NotAuthorizedForTenant
public static final ErrorCode InvalidTenantEngineId
public static final ErrorCode InvalidTenantEngineCommand
public static final ErrorCode InvalidTenantGroupId
public static final ErrorCode DuplicateId
public static final ErrorCode DuplicateHardwareId
public static final ErrorCode InvalidHardwareId
public static final ErrorCode InvalidAssetReferenceId
public static final ErrorCode InvalidDeviceSpecificationToken
public static final ErrorCode DuplicateDeviceSpecificationToken
public static final ErrorCode InvalidDeviceCommandToken
public static final ErrorCode DeuplicateSiteToken
public static final ErrorCode InvalidSiteToken
public static final ErrorCode DuplicateDeviceAssignment
public static final ErrorCode InvalidDeviceAssignmentId
public static final ErrorCode InvalidDeviceAssignmentToken
public static final ErrorCode InvalidZoneToken
public static final ErrorCode InvalidDeviceEventId
public static final ErrorCode DuplicateDeviceGroupToken
public static final ErrorCode InvalidDeviceGroupToken
public static final ErrorCode InvalidBatchOperationToken
public static final ErrorCode InvalidBatchElement
public static final ErrorCode InvalidSearchProviderId
public static final ErrorCode DuplicateStreamId
public static final ErrorCode InvalidStreamId
public static final ErrorCode InvalidCharsInStreamId
public static final ErrorCode InvalidAssetCategoryId
public static final ErrorCode InvalidAssetId
public static final ErrorCode DuplicateTenantId
public static final ErrorCode DuplicateTenantGroupId
public static final ErrorCode InvalidScheduleToken
public static final ErrorCode InvalidScheduledJobToken
public static final ErrorCode DuplicateScheduleToken
public static final ErrorCode DuplicateScheduledJobToken
public static final ErrorCode InvalidTenantTemplateId
public static final ErrorCode DuplicateZoneToken
public static final ErrorCode DuplicateBatchOperationToken
public static final ErrorCode DuplicateBatchElement
public static final ErrorCode DeviceCommandExists
public static final ErrorCode DeviceAlreadyAssigned
public static final ErrorCode DeviceNotAssigned
public static final ErrorCode DeviceHardwareIdCanNotBeChanged
public static final ErrorCode DeviceCanNotBeDeletedIfAssigned
public static final ErrorCode DeviceSiteCanNotBeChangedIfAssigned
public static final ErrorCode DeviceElementMappingExists
public static final ErrorCode DeviceElementMappingDoesNotExist
public static final ErrorCode InvalidDeviceSlotPath
public static final ErrorCode DeviceParentMappingExists
public static final ErrorCode RequiredCommandParameterMissing
public static final ErrorCode ZoneDeleteFailed
public static final ErrorCode AssetCategoryIdInUse
public static final ErrorCode AssetIdInUse
public static final ErrorCode AssetTypeNotAllowed
public static final ErrorCode UnknownAssetType
public static final ErrorCode GenericDeleteFailed
public static final ErrorCode IncompleteData
public static final ErrorCode Unknown
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ErrorCode fromCode(long code)
code
- public void setCode(long code)
public long getCode()
public void setMessage(java.lang.String message)
public java.lang.String getMessage()