Class AgentDeviceOperationException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AgentDeviceLoginException

public class AgentDeviceOperationException extends PhoneSystemException
Signals that an exception has occurred during agent device operation.
Since:
11.27
See Also:
  • Field Details

    • agent

      protected final transient User agent
    • deviceId

      protected final String deviceId
  • Constructor Details

    • AgentDeviceOperationException

      public AgentDeviceOperationException(String message, int errorCode, ConnectedAgentDevice connectedAgentDevice)
      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
      errorCode - the optional error code of the exception (which is saved for later retrieval by the PhoneSystemException.getErrorCode() method).
      connectedAgentDevice - the ConnectedAgentDevice that caused the exception
      Since:
      11.27
    • AgentDeviceOperationException

      public AgentDeviceOperationException(String message, int errorCode, User agent, String deviceId)
      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
      errorCode - the optional error code of the exception (which is saved for later retrieval by the PhoneSystemException.getErrorCode() method).
      agent - the user that caused the exception (which is saved for later retrieval by the getAgent() method).
      deviceId - the id of the device (which is saved for later retrieval by the getDeviceId() method).
      Since:
      11.27
    • AgentDeviceOperationException

      public AgentDeviceOperationException(String message, int errorCode, User agent, String deviceId, Throwable cause)
      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
      errorCode - the optional error code of the exception (which is saved for later retrieval by the PhoneSystemException.getErrorCode() method).
      agent - the user that caused the exception (which is saved for later retrieval by the getAgent() method).
      deviceId - the id of the device (which is saved for later retrieval by the getDeviceId() method).
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
      Since:
      11.27
  • Method Details

    • getAgent

      public User getAgent()
      Returns:
      the agent
      Since:
      11.27
    • getDeviceId

      public String getDeviceId()
      Returns:
      the deviceId
      Since:
      11.27
    • toString

      public String toString()
      Overrides:
      toString in class PhoneSystemException