|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.resource.ResourceException
javax.resource.NotSupportedException
public class NotSupportedException
A NotSupportedException is thrown to indicate that the callee (resource adapter or application server for system contracts) cannot execute an operation because the operation is not a supported feature. For example, if the transaction support level for a resource adapter is NO_TRANSACTION, an invocation of ManagedConnection.getXAResource method should throw NotSupportedException exception.
Constructor Summary | |
---|---|
NotSupportedException()
Create a not supported exception. |
|
NotSupportedException(String reason)
Create a not supported exception with a reason. |
|
NotSupportedException(String reason,
String errorCode)
Create a not supported exception with a reason and an errorCode. |
|
NotSupportedException(String reason,
Throwable throwable)
Create a not supported exception with a reason and an error. |
|
NotSupportedException(Throwable throwable)
Create a not supported exception with an error. |
Method Summary |
---|
Methods inherited from class javax.resource.ResourceException |
---|
getErrorCode, getLinkedException, getMessage, setErrorCode, setLinkedException |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, 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 NotSupportedException()
public NotSupportedException(String reason)
reason
- the reasonpublic NotSupportedException(String reason, String errorCode)
reason
- the reasonerrorCode
- the error codepublic NotSupportedException(String reason, Throwable throwable)
reason
- the reasonthrowable
- the errorpublic NotSupportedException(Throwable throwable)
throwable
- the error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |