javax.telephony.media
Class MediaException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--javax.telephony.media.MediaException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ContainerException, MediaCallException, MediaResourceException, MediaServiceException, NotDelegatedException, ServiceException
- public abstract class MediaException
- extends java.lang.Exception
MediaException is the parent for [non-Runtime] Exceptions
in JTAPI Media.
- Since:
- JTAPI-1.3
- See Also:
- Serialized Form
Constructor Summary |
MediaException()
Constructs a MediaException
with no specified detail message. |
MediaException(java.lang.String s)
Constructs a MediaException
with the specified detail message. |
MediaException(java.lang.String s,
MediaEvent event)
Construct a MediaException
with the specified detail message and Event. |
Method Summary |
MediaEvent |
getEvent()
Return the MediaEvent associated with this MediaException. |
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 |
MediaException
public MediaException()
- Constructs a
MediaException
with no specified detail message.
MediaException
public MediaException(java.lang.String s)
- Constructs a
MediaException
with the specified detail message.
- Parameters:
s
- the detail message.
MediaException
public MediaException(java.lang.String s,
MediaEvent event)
- Construct a
MediaException
with the specified detail message and Event.
Wraps the given Event in a MediaException.
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 MediaEvent
getEvent
public MediaEvent getEvent()
- Return the MediaEvent associated with this MediaException.
Note: for pre-condition errors,
this may return null.
- Returns:
- the MediaEvent associated with this Exception.
Send comments to: JSR-43@ectf.org