JSR-043: JTAPI-1.4

javax.telephony.media
Class MediaRuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--javax.telephony.media.MediaRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ASR.NoContextException, DisconnectedException, NoResourceException, NotBoundException, NotOwnerException

public abstract class MediaRuntimeException
extends java.lang.RuntimeException

MediaRuntimeException is the parent for JTAPI Media RuntimeExceptions.

This is the Runtime counterpart to MediaException.

Since:
JTAPI-1.3
See Also:
Serialized Form

Constructor Summary
MediaRuntimeException()
          Constructs a MediaRuntimeException with no specified detail message.
MediaRuntimeException(java.lang.String s)
          Constructs a MediaRuntimeException with the specified detail message.
MediaRuntimeException(java.lang.String s, MediaEvent event)
          Construct a MediaRuntimeException with the specified detail message and Event.
 
Method Summary
 MediaEvent getEvent()
          Return the MediaEvent associated with this MediaRuntimeException.
 
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

MediaRuntimeException

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

MediaRuntimeException

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

MediaRuntimeException

public MediaRuntimeException(java.lang.String s,
                             MediaEvent event)
Construct a MediaRuntimeException with the specified detail message and Event.
Parameters:
s - the detail message describing the error in the event.
event - a MediaEvent
Method Detail

getEvent

public MediaEvent getEvent()
Return the MediaEvent associated with this MediaRuntimeException.

Note: for pre-condition errors, this may return null.

Returns:
the MediaEvent associated with this Exception.

JSR-043: JTAPI-1.4

Send comments to: JSR-43@ectf.org