|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception javax.resource.ResourceException javax.resource.cci.ResourceWarning
ResourceWarning provides information on warnings generated by the underlying resource. They are chained to an Interaction object for later retrieval.
Constructor Summary | |
ResourceWarning()
Create a warning |
|
ResourceWarning(String reason)
Create a warning with a reason. |
|
ResourceWarning(String reason,
String errorCode)
Create a warning with a reason and an errorCode. |
|
ResourceWarning(String reason,
Throwable throwable)
Create a warning with a reason and an error. |
|
ResourceWarning(Throwable throwable)
Create a warning with an error. |
Method Summary | |
ResourceWarning |
getLinkedWarning()
Deprecated. use getCause() |
void |
setLinkedWarning(ResourceWarning linkedWarning)
Deprecated. use initCause() |
Methods inherited from class javax.resource.ResourceException |
getErrorCode, getLinkedException, setErrorCode, setLinkedException |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ResourceWarning()
public ResourceWarning(String reason)
public ResourceWarning(String reason, String errorCode)
public ResourceWarning(String reason, Throwable throwable)
reason
- the reasonthrowable
- the errorpublic ResourceWarning(Throwable throwable)
throwable
- the errorMethod Detail |
public void setLinkedWarning(ResourceWarning linkedWarning)
public ResourceWarning getLinkedWarning()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |