com.genesyslab.ail.exception
Class ServiceException

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConfigServiceException, DatabaseServiceException, IsServiceException, OutboundServiceException, TelephonyServiceException

public class ServiceException
extends RequestFailedException

Exception thrown when a request fails because of the underlying service.

See Also:
Serialized Form

Constructor Summary
ServiceException(java.lang.String name, ServiceStatus.Status status)
          Constructor for this exception.
 
Method Summary
 java.lang.String getName()
          Returns the name of the service.
 ServiceStatus.Status getStatus()
          Returns the status of the service.
 java.lang.String toString()
          Returns a String representation of this Exception.
 
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

ServiceException

public ServiceException(java.lang.String name,
                        ServiceStatus.Status status)
Constructor for this exception.

Parameters:
name - the name of the service
status - the status of the service
Method Detail

getName

public java.lang.String getName()
Returns the name of the service.


getStatus

public ServiceStatus.Status getStatus()
Returns the status of the service.


toString

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

Overrides:
toString in class java.lang.Throwable