|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--javax.telephony.media.MediaException | +--javax.telephony.media.MediaResourceException
Thrown when a Resource method fails for various reasons. MediaResourceException contains an embedded ResourceEvent that explains the details of the problem.
A MediaResourceException generally corresponds to a Resource error or other error detected by the implementation that prevents the normal completion of a request.
Constructor Summary | |
MediaResourceException()
Constructs a MediaResourceException
with no specified detail message. |
|
MediaResourceException(ResourceEvent event)
Deprecated. no real use for this constructor |
|
MediaResourceException(java.lang.String s)
Constructs a MediaResourceException
with the specified detail message. |
|
MediaResourceException(java.lang.String s,
ResourceEvent event)
Construct a MediaResourceException
with the specified detail message and ResourceEvent. |
Method Summary | |
ResourceEvent |
getResourceEvent()
Extract the underlying ResourceEvent from this MediaResourceException. |
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 |
public MediaResourceException()
MediaResourceException
with no specified detail message.public MediaResourceException(java.lang.String s)
MediaResourceException
with the specified detail message.s
- the detail message.public MediaResourceException(ResourceEvent event)
MediaResourceException
with the specified ResourceEvent and no detail message.
Wraps the given ResourceEvent in a MediaResourceException.
This exception is thrown if the ResourceEvent indicates
an error or other exceptional status.event
- a ResourceEventpublic MediaResourceException(java.lang.String s, ResourceEvent event)
MediaResourceException
with the specified detail message and ResourceEvent.s
- the detail message describing the error in the event.event
- a ResourceEventMethod Detail |
public ResourceEvent getResourceEvent()
ResourceEvent.getRTCTrigger()
to get more information.
The returned ResourceEvent
may have
getQualifier() == null
indicating an error.
Note:
It is safe to use getResourceEvent().getError()
because getResourceEvent() != null
and if there is no error, then getError() == e_OK
.
|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |