Class AgentDeviceOperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.novomind.ecom.api.iagent.exception.PhoneSystemException
com.novomind.ecom.api.iagent.exception.AgentDeviceOperationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AgentDeviceLoginException
Signals that an exception has occurred during agent device operation.
- Since:
- 11.27
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Userthe agent user associated with this exceptionprotected final Stringthe id of the device associated with this exceptionFields inherited from class com.novomind.ecom.api.iagent.exception.PhoneSystemException
errorCode -
Constructor Summary
ConstructorsConstructorDescriptionAgentDeviceOperationException(String message, int errorCode, ConnectedAgentDevice connectedAgentDevice) Constructs a newAgentDeviceOperationExceptionwith the specified detail message, error code and connected agent device.AgentDeviceOperationException(String message, int errorCode, User agent, String deviceId) Constructs a newAgentDeviceOperationExceptionwith the specified detail message, error code, agent and device id.AgentDeviceOperationException(String message, int errorCode, User agent, String deviceId, Throwable cause) Constructs a newAgentDeviceOperationExceptionwith the specified detail message, error code, agent, device id and cause. -
Method Summary
Methods inherited from class com.novomind.ecom.api.iagent.exception.PhoneSystemException
getErrorCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
agent
the agent user associated with this exception -
deviceId
the id of the device associated with this exception
-
-
Constructor Details
-
AgentDeviceOperationException
public AgentDeviceOperationException(String message, int errorCode, ConnectedAgentDevice connectedAgentDevice) Constructs a newAgentDeviceOperationExceptionwith the specified detail message, error code and connected agent device.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method).errorCode- the optional error code of the exception (which is saved for later retrieval by thePhoneSystemException.getErrorCode()method).connectedAgentDevice- theConnectedAgentDevicethat caused the exception- Since:
- 11.27
-
AgentDeviceOperationException
Constructs a newAgentDeviceOperationExceptionwith the specified detail message, error code, agent and device id.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method).errorCode- the optional error code of the exception (which is saved for later retrieval by thePhoneSystemException.getErrorCode()method).agent- the user that caused the exception (which is saved for later retrieval by thegetAgent()method).deviceId- the id of the device (which is saved for later retrieval by thegetDeviceId()method).- Since:
- 11.27
-
AgentDeviceOperationException
public AgentDeviceOperationException(String message, int errorCode, User agent, String deviceId, Throwable cause) Constructs a newAgentDeviceOperationExceptionwith the specified detail message, error code, agent, device id and cause.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method).errorCode- the optional error code of the exception (which is saved for later retrieval by thePhoneSystemException.getErrorCode()method).agent- the user that caused the exception (which is saved for later retrieval by thegetAgent()method).deviceId- the id of the device (which is saved for later retrieval by thegetDeviceId()method).cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)- Since:
- 11.27
-
-
Method Details
-
getAgent
Returns the agent that caused this exception.- Returns:
- the agent
- Since:
- 11.27
-
getDeviceId
Returns the device id associated with this exception.- Returns:
- the deviceId
- Since:
- 11.27
-
toString
- Overrides:
toStringin classPhoneSystemException
-