com.genesyslab.ail.exception
Class TelephonyErrorException

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.TelephonyServiceException
                      extended by com.genesyslab.ail.exception.TelephonyErrorException
All Implemented Interfaces:
java.io.Serializable

public class TelephonyErrorException
extends TelephonyServiceException

Exception thrown when a request to the TServer fails.

See Also:
Serialized Form

Nested Class Summary
static class TelephonyErrorException.Type
          Constants for the types of telephony error.
 
Constructor Summary
TelephonyErrorException(java.lang.String name, TelephonyErrorException.Type type, int tserver_type, java.lang.String tserver_error)
          Constructor for this exception.
 
Method Summary
 java.lang.String getTServerError()
          Returns the TServer type of error as a String.
 int getTServerErrorCode()
          Returns the TServer type of error.
 TelephonyErrorException.Type getType()
          Returns the type of error.
 java.lang.String toString()
          Returns a String representation of this error.
 
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

TelephonyErrorException

public TelephonyErrorException(java.lang.String name,
                               TelephonyErrorException.Type type,
                               int tserver_type,
                               java.lang.String tserver_error)
Constructor for this exception.

Parameters:
name - the name of the telephony service
type - the type of error
tserver_type - the internal tserver type of error.
tserver_error - the internal tserver error as a String.
Method Detail

getType

public TelephonyErrorException.Type getType()
Returns the type of error. You can get more info with getTServerErrorCode() and getTServerError(), namely if the value is TelephonyErrorException.Type.INTERNAL.


getTServerErrorCode

public int getTServerErrorCode()
Returns the TServer type of error.


getTServerError

public java.lang.String getTServerError()
Returns the TServer type of error as a String.


toString

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

Overrides:
toString in class ServiceException