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:
java.io.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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected User
agent
protected java.lang.String
deviceId
-
Fields inherited from class com.novomind.ecom.api.iagent.exception.PhoneSystemException
errorCode
-
-
Constructor Summary
Constructors Constructor Description AgentDeviceOperationException(java.lang.String message, int errorCode, ConnectedAgentDevice connectedAgentDevice)
AgentDeviceOperationException(java.lang.String message, int errorCode, User agent, java.lang.String deviceId)
AgentDeviceOperationException(java.lang.String message, int errorCode, User agent, java.lang.String deviceId, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description User
getAgent()
java.lang.String
getDeviceId()
java.lang.String
toString()
-
Methods inherited from class com.novomind.ecom.api.iagent.exception.PhoneSystemException
getErrorCode
-
-
-
-
Field Detail
-
agent
protected final transient User agent
-
deviceId
protected final java.lang.String deviceId
-
-
Constructor Detail
-
AgentDeviceOperationException
public AgentDeviceOperationException(java.lang.String message, int errorCode, ConnectedAgentDevice connectedAgentDevice)
- 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
- theConnectedAgentDevice
that caused the exception- Since:
- 11.27
-
AgentDeviceOperationException
public AgentDeviceOperationException(java.lang.String message, int errorCode, User agent, java.lang.String deviceId)
- 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(java.lang.String message, int errorCode, User agent, java.lang.String deviceId, java.lang.Throwable 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). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)- Since:
- 11.27
-
-
Method Detail
-
getAgent
public User getAgent()
- Returns:
- the agent
- Since:
- 11.27
-
getDeviceId
public java.lang.String getDeviceId()
- Returns:
- the deviceId
- Since:
- 11.27
-
toString
public java.lang.String toString()
- Overrides:
toString
in classPhoneSystemException
-
-