com.genesyslab.ail.exception
Class OutboundServiceException

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.OutboundServiceException
All Implemented Interfaces:
java.io.Serializable

public class OutboundServiceException
extends ServiceException

Exception thrown when the outbound request returned an error. The underlying Telephony Server is up and running.

See Also:
Serialized Form

Nested Class Summary
static class OutboundServiceException.Type
          Outbound error types.
 
Constructor Summary
OutboundServiceException(java.lang.String name, int error_code)
          Constructor for this exception.
OutboundServiceException(java.lang.String name, OutboundServiceException.Type type)
          Constructor for this exception.
 
Method Summary
 OutboundServiceException.Type getType()
          Returns the type of the error that has occurred.
 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

OutboundServiceException

public OutboundServiceException(java.lang.String name,
                                int error_code)
Constructor for this exception.

Parameters:
name - the name of the outbound service
error_code - the internal error code

OutboundServiceException

public OutboundServiceException(java.lang.String name,
                                OutboundServiceException.Type type)
Constructor for this exception.

Parameters:
name - the name of the outbound service
type - the type of the exception
Method Detail

getType

public OutboundServiceException.Type getType()
Returns the type of the error that has occurred.

Returns:
the type of this error.

toString

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

Overrides:
toString in class ServiceException
Returns:
a String representing this error.