JSR-043: JTAPI-1.4

javax.telephony.media
Class NoResourceException

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

public class NoResourceException
extends MediaRuntimeException

Thrown if a resource method is invoked on a MediaService when the corresponding resource is not configured into the MediaService.

This typically indicates that the ConfigSpec used to MediaService.configure(javax.telephony.media.ConfigSpec) the MediaService is incorrect; or the application has otherwise failed to achieve the correct configuration.

Since:
JTAPI-1.3
See Also:
Serialized Form

Constructor Summary
NoResourceException()
          Constructs a NoResourceException with no specified detail message.
NoResourceException(java.lang.String s)
          Constructs a NoResourceException with the specified detail message.
NoResourceException(java.lang.String s, MediaEvent event)
          Construct a NoResourceException 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

NoResourceException

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

NoResourceException

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

NoResourceException

public NoResourceException(java.lang.String s,
                           MediaEvent event)
Construct a NoResourceException 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