JSR-043: JTAPI-1.4

javax.telephony.media.messaging
Class ServiceException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.telephony.media.MediaException
                    |
                    +--javax.telephony.media.messaging.ServiceException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NotRegisteredException, ServiceClosedException, ServiceRequestException

public class ServiceException
extends MediaException

A MediaException containing a ServiceEvent.

Since:
JTAPI-1.4
See Also:
Serialized Form

Constructor Summary
ServiceException()
          Constructs a ServiceException with no specified detail message.
ServiceException(java.lang.String s)
          Constructs a ServiceException with the specified detail message.
ServiceException(java.lang.String s, ServiceEvent event)
          Construct a ServiceException with the specified detail message and Event.
 
Method Summary
 ServiceEvent getServiceEvent()
          Return the ServiceEvent from the method that generated this Exception.
 
Methods inherited from class javax.telephony.media.MediaException
getEvent
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceException

public ServiceException()
Constructs a ServiceException with no specified detail message.

ServiceException

public ServiceException(java.lang.String s)
Constructs a ServiceException with the specified detail message.
Parameters:
s - the detail message.

ServiceException

public ServiceException(java.lang.String s,
                        ServiceEvent event)
Construct a ServiceException with the specified detail message and Event. Wraps the given Event in a ServiceException. This exception is thrown if the Event indicates an error or other exceptional status.
Parameters:
s - the detail message describing the error in the event.
event - a ServiceEvent
Method Detail

getServiceEvent

public ServiceEvent getServiceEvent()
Return the ServiceEvent from the method that generated this Exception. The ServiceEvent may contain additional information about what went wrong.
Returns:
the ServiceEvent associated with this Exception.
See Also:
MediaException.getEvent()

JSR-043: JTAPI-1.4

Send comments to: JSR-43@ectf.org