Top Description Constructors Methods
javax.resource.spi

public Class SharingViolationException

extends ResourceException
Class Inheritance

This is thrown to indicate a connection sharing violation.

This may be thrown by a resource adapter when an application uses a shareable connection in an unshareable manner.

Author
Ram Jeyaraman
Version
1.0

Constructor Summary

AccessConstructor and Description
public
SharingViolationException()

Constructs a new instance with null as its detail message.

public
SharingViolationException(String
the detail message.
message
)

Constructs a new instance with the specified detail message.

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

Constructs a new throwable with the specified cause.

public
SharingViolationException(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
SharingViolationException(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

SharingViolationExceptionback to summary
public SharingViolationException()

Constructs a new instance with null as its detail message.

SharingViolationExceptionback to summary
public SharingViolationException(String message)

Constructs a new instance with the specified detail message.

Parameters
message:String

the detail message.

SharingViolationExceptionback to summary
public SharingViolationException(Throwable cause)

Constructs a new throwable with the specified cause.

Parameters
cause:Throwable

a chained exception of type Throwable.

SharingViolationExceptionback to summary
public SharingViolationException(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.

SharingViolationExceptionback to summary
public SharingViolationException(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.