Top Description Constructors Methods
javax.resource.spi

public Class LocalTransactionException

extends ResourceException
Class Inheritance

A LocalTransactionException represents various error conditions related to the local transaction management contract. The Java Transaction API specification specifies the javax.transaction.xa.XAException class for exceptions related to XAResource based transaction management contract.

The LocalTransactionException is used for the local transaction management contract to indicate the following common error conditions:

Authors
Rahul Sharma, Ram Jeyaraman
Version
1.0

Constructor Summary

AccessConstructor and Description
public
LocalTransactionException()

Constructs a new instance with null as its detail message.

public
LocalTransactionException(String
the detail message.
message
)

Constructs a new instance with the specified detail message.

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

Constructs a new throwable with the specified cause.

public
LocalTransactionException(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
LocalTransactionException(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 an error code.

Method Summary

Inherited from javax.resource.ResourceException:
getErrorCodegetLinkedExceptiongetMessagesetErrorCodesetLinkedException

Constructor Detail

LocalTransactionExceptionback to summary
public LocalTransactionException()

Constructs a new instance with null as its detail message.

LocalTransactionExceptionback to summary
public LocalTransactionException(String message)

Constructs a new instance with the specified detail message.

Parameters
message:String

the detail message.

LocalTransactionExceptionback to summary
public LocalTransactionException(Throwable cause)

Constructs a new throwable with the specified cause.

Parameters
cause:Throwable

a chained exception of type Throwable.

LocalTransactionExceptionback to summary
public LocalTransactionException(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.

LocalTransactionExceptionback to summary
public LocalTransactionException(String message, String errorCode)

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

Parameters
message:String

a description of the exception.

errorCode:String

a string specifying the vendor specific error code.