Top Description Fields Constructors
jakarta.data.exceptions

public Class DataConnectionException

extends DataException
Class Inheritance

Indicates a connection-related failure that might be intermittent in nature. The operation might succeed if reattempted by the application. If the data access resource is enlisted in a transaction, the application must ensure that the transaction is rolled back before retrying the operation under a new transaction.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
DataConnectionException(String
the detail message.
message
)

Constructs a new DataConnectionException exception with the specified detail message.

public
DataConnectionException(String
the detail message.
message
,
Throwable
another exception or error that caused this exception. Null indicates that no other cause is specified.
cause
)

Constructs a new DataConnectionException exception with the specified detail message.

public
DataConnectionException(Throwable
the cause.
cause
)

Constructs a new DataConnectionException exception with the specified cause.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.data.exceptions.DataException.serialVersionUID.

Constructor Detail

DataConnectionExceptionback to summary
public DataConnectionException(String message)

Constructs a new DataConnectionException exception with the specified detail message.

Parameters
message:String

the detail message.

DataConnectionExceptionback to summary
public DataConnectionException(String message, Throwable cause)

Constructs a new DataConnectionException exception with the specified detail message.

Parameters
message:String

the detail message.

cause:Throwable

another exception or error that caused this exception. Null indicates that no other cause is specified.

DataConnectionExceptionback to summary
public DataConnectionException(Throwable cause)

Constructs a new DataConnectionException exception with the specified cause.

Parameters
cause:Throwable

the cause.