|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
hp.telephony.media.MediaException
hp.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 ev)
Construct a MediaResourceException
with the specified ResourceEvent and no detail message.
|
|
MediaResourceException(String s)
Constructs a MediaResourceException
with the specified detail message. |
|
MediaResourceException(String s,
ResourceEvent ev)
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 java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, 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(String s)
MediaResourceException
with the specified detail message.
s - the detail message.public MediaResourceException(ResourceEvent ev)
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.
ev - a ResourceEvent
public MediaResourceException(String s,
ResourceEvent ev)
MediaResourceException
with the specified detail message and ResourceEvent.
Wraps the given ResourceEvent in a MediaResourceException.
This exception is thrown if the ResourceEvent indicates
an error or other exceptional status.
s - the detail messageev - a ResourceEvent| Method Detail |
public ResourceEvent getResourceEvent()
ResourceEvent.getError() or
ResourceEvent.getQualifier()
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() == Error.OK.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||