JSR-043: JTAPI-1.4

javax.telephony.media
Class NotBoundException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--javax.telephony.media.MediaRuntimeException
                          |
                          +--javax.telephony.media.NotBoundException
All Implemented Interfaces:
java.io.Serializable

public class NotBoundException
extends MediaRuntimeException

Thrown when a resource operation is attempted on a MediaService that is not bound to a MediaGroup. This is a RuntimeException and may be thrown by any Resource method, even though it is not declared.

Note: if the platform supports Delegation then the MediaGroup may be retrieved at any time. Good practice argues against such a surprise, and it might be nice if there was an attribute to indicate if 'retrieve' should be enabled for an application. But until that is specified one must be aware of the possibility.

Since:
JTAPI-1.3
See Also:
Delegation.retrieve(javax.telephony.media.Symbol), Serialized Form

Constructor Summary
NotBoundException()
          Constructs a NotBoundException with no specified detail message.
NotBoundException(java.lang.String s)
          Constructs a NotBoundException with the specified detail message.
NotBoundException(java.lang.String s, MediaEvent event)
          Construct a NotBoundException with the specified detail message and Event.
 
Methods inherited from class javax.telephony.media.MediaRuntimeException
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

NotBoundException

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

NotBoundException

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

NotBoundException

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

JSR-043: JTAPI-1.4

Send comments to: JSR-43@ectf.org