Exceptions and Error Codes

General Exceptions and Error Codes

The following exceptions are generically classified as system level exceptions. These are considered general exceptions that occur infrequently and often imply a systemic issue. As a result, these error codes are grouped into the following two exception types: ManagementException and SessionException.

ManagementException

Thrown in response to unexpected and unrecoverable errors within the client or server. ManagementExceptions are typically non-recoverable and are usually related to systemic issues such as mis-configuration, connectivity issues, an inability to lookup device identifiers, or resource unavailability.

SessionException

Thrown in cases where an error condition is encountered caused by session anomalies (such as a session is not open or a session is no longer valid or session permission is denied. The following table describes the maximum session error code.

Maximum Session Error Codes

Error Code

Description

AIMS_CONNECTION_TIMEOUT

The session has expired.

AIMS_MAX_SESSION_REACHED

This is the value returned whenever the maximum number of sessions has been reached on the server for the corresponding manager.

AIMS_OPERATOR_PERMISSION_DENIED

The operator has insufficient permissions for the API call.

AIMS_SESSION_NOT_OPENED

The API call requires a valid session open.

AIMS_UNEXPECTED_CLIENT_ERROR

The session was interupted or closed prematurely by the client.

Other Exceptions

This section lists the exceptions occuring when there are issues that are related to operations, parameters, actions, data-specific, or other types of activity-related causes.

Backward Compatibility Implementation Considerations

This section provides descriptions of how the Java and C++ implementations address backward compatibility for the LocalizedRemoteException class.