Class PhoneSystemException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.novomind.ecom.api.iagent.exception.PhoneSystemException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AgentDeviceOperationException, CallNotFoundException, CallOperationException

public class PhoneSystemException extends Exception
Generic exception to be used for all kinds of errors related to a PhoneSystemConnector
Since:
11.27
See Also:
  • Field Details

    • errorCode

      protected final int errorCode
  • Constructor Details

    • PhoneSystemException

      public PhoneSystemException()
      Since:
      11.27
    • PhoneSystemException

      public PhoneSystemException(String message)
      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
      Since:
      11.27
    • PhoneSystemException

      public PhoneSystemException(String message, int errorCode)
      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 getErrorCode() method).
      Since:
      11.27
    • PhoneSystemException

      public PhoneSystemException(String message, int errorCode, 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 getErrorCode() 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

    • getErrorCode

      public int getErrorCode()
      Returns:
      the errorCode
      Since:
      11.27
    • toString

      public String toString()
      Overrides:
      toString in class Throwable