Top Description Constructors Methods
javax.resource

public Class NotSupportedException

extends ResourceException
Class Inheritance

A NotSupportedException is thrown to indicate that 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 getXAResource method on a ManagedConnection object should throw a NotSupportedException exception.
Authors
Rahul Sharma, Ram Jeyaraman
Version
1.0

Constructor Summary

AccessConstructor and Description
public
NotSupportedException()

Constructs a new instance with null as its detail message.

public
NotSupportedException(String
the detail message.
message
)

Constructs a new instance with the specified detail message.

public
NotSupportedException(Throwable
a chained exception of type Throwable.
cause
)

Constructs a new throwable with the specified cause.

public
NotSupportedException(String
the detail message.
message
,
Throwable
a chained exception of type Throwable.
cause
)

Constructs a new throwable with the specified detail message and cause.

public
NotSupportedException(String
a description of the exception.
message
,
String
a string specifying the vendor specific error code.
errorCode
)

Constructs a new throwable with the specified detail message and error code.

Method Summary

Inherited from javax.resource.ResourceException:
getErrorCodegetLinkedExceptiongetMessagesetErrorCodesetLinkedException

Constructor Detail

NotSupportedExceptionback to summary
public NotSupportedException()

Constructs a new instance with null as its detail message.

NotSupportedExceptionback to summary
public NotSupportedException(String message)

Constructs a new instance with the specified detail message.

Parameters
message:String

the detail message.

NotSupportedExceptionback to summary
public NotSupportedException(Throwable cause)

Constructs a new throwable with the specified cause.

Parameters
cause:Throwable

a chained exception of type Throwable.

NotSupportedExceptionback to summary
public NotSupportedException(String message, Throwable cause)

Constructs a new throwable with the specified detail message and cause.

Parameters
message:String

the detail message.

cause:Throwable

a chained exception of type Throwable.

NotSupportedExceptionback to summary
public NotSupportedException(String message, String errorCode)

Constructs a new throwable with the specified detail message and error code.

Parameters
message:String

a description of the exception.

errorCode:String

a string specifying the vendor specific error code.