com.genesyslab.ail.exception
Class IsErrorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.genesyslab.ail.exception.RequestFailedException
              extended by com.genesyslab.ail.exception.ServiceException
                  extended by com.genesyslab.ail.exception.IsServiceException
                      extended by com.genesyslab.ail.exception.IsErrorException
All Implemented Interfaces:
java.io.Serializable

public class IsErrorException
extends IsServiceException

Exception thrown when a request to the telephony service fails.

See Also:
Serialized Form

Nested Class Summary
static class IsErrorException.Type
          Constants for interaction statuses, common for all media.
 
Constructor Summary
IsErrorException(java.lang.String name, ServiceStatus.Status status, int errorCode, java.lang.String error)
          Constructor for this exception.
 
Method Summary
 java.lang.String getError()
          Returns a String representation of the error that has occurred.
 int getErrorCode()
          Returns the code of the error that has occurred.
 IsErrorException.Type getErrorType()
          Returns the type of error that has occurred.
 java.lang.String toString()
          Returns a String representation of this Exception.
 
Methods inherited from class com.genesyslab.ail.exception.ServiceException
getName, getStatus
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IsErrorException

public IsErrorException(java.lang.String name,
                        ServiceStatus.Status status,
                        int errorCode,
                        java.lang.String error)
Constructor for this exception.

Parameters:
name - The name of the service.
status - The status of the service
error - The error that has occurred
Method Detail

getError

public java.lang.String getError()
Returns a String representation of the error that has occurred.


getErrorCode

public int getErrorCode()
Returns the code of the error that has occurred.


getErrorType

public IsErrorException.Type getErrorType()
Returns the type of error that has occurred.


toString

public java.lang.String toString()
Returns a String representation of this Exception.

Overrides:
toString in class ServiceException