com.adobe.connectpro.telephony.adaptor
Class AdaptorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.adobe.connectpro.telephony.adaptor.AdaptorException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ValidateException

public class AdaptorException
extends java.lang.Exception

Exception thrown when the adaptor fails to serve a Connect Pro command. See constants in FailureCode for error codes.

See Also:
Serialized Form

Constructor Summary
AdaptorException(FailureCode errorCode)
          Creates new exception instance.
AdaptorException(FailureCode errorCode, java.lang.String message)
          Creates new exception instance.
AdaptorException(FailureCode errorCode, java.lang.String message, java.lang.Throwable cause)
          Creates new exception instance.
AdaptorException(FailureCode errorCode, java.lang.Throwable cause)
          Creates new exception instance.
 
Method Summary
 FailureCode getErrorCode()
          Gets error code for the exception
 void setErrorCode(FailureCode errorCode)
          Sets error code for the exception
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdaptorException

public AdaptorException(FailureCode errorCode,
                        java.lang.Throwable cause)
Creates new exception instance.

Parameters:
errorCode - Error code indicating exact cause of this exception.
cause - Reason the exception was thrown.

AdaptorException

public AdaptorException(FailureCode errorCode)
Creates new exception instance.

Parameters:
errorCode - Error code indicating exact cause of this exception.

AdaptorException

public AdaptorException(FailureCode errorCode,
                        java.lang.String message)
Creates new exception instance.

Parameters:
errorCode - Error code indicating exact cause of this exception.
message - Exception message used for logging or debugging

AdaptorException

public AdaptorException(FailureCode errorCode,
                        java.lang.String message,
                        java.lang.Throwable cause)
Creates new exception instance.

Parameters:
errorCode - Error code indicating exact cause of this exception.
message - Exception message used for logging or debugging
cause - Reason the exception was thrown.
Method Detail

getErrorCode

public FailureCode getErrorCode()
Gets error code for the exception

Returns:
Error code indicating exact cause of this exception.

setErrorCode

public void setErrorCode(FailureCode errorCode)
Sets error code for the exception

Parameters:
errorCode - Error code indicating exact cause of this exception.