public class TransactionException extends Exception
| Modifier and Type | Field and Description |
|---|---|
protected TransactionExceptionCode |
code
The Code.
|
| Constructor and Description |
|---|
TransactionException(String message)
Instantiates a new Transaction exception.
|
TransactionException(String message,
Throwable cause)
Instantiates a new Transaction exception.
|
TransactionException(Throwable cause)
Instantiates a new Transaction exception.
|
TransactionException(TransactionExceptionCode code)
Instantiates a new Transaction exception.
|
TransactionException(TransactionExceptionCode code,
String message)
Instantiates a new Transaction exception.
|
TransactionException(TransactionExceptionCode code,
String message,
Throwable cause)
Instantiates a new Transaction exception.
|
TransactionException(TransactionExceptionCode code,
Throwable cause)
Instantiates a new Transaction exception.
|
| Modifier and Type | Method and Description |
|---|---|
TransactionExceptionCode |
getCode()
Gets code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected TransactionExceptionCode code
public TransactionException(TransactionExceptionCode code)
code - the codepublic TransactionException(TransactionExceptionCode code, Throwable cause)
code - the codecause - the causepublic TransactionException(String message)
message - the messagepublic TransactionException(TransactionExceptionCode code, String message)
code - the codemessage - the messagepublic TransactionException(Throwable cause)
cause - the causepublic TransactionException(String message, Throwable cause)
message - the messagecause - the causepublic TransactionException(TransactionExceptionCode code, String message, Throwable cause)
code - the codemessage - the messagecause - the causepublic TransactionExceptionCode getCode()
Copyright © 2023 Seata. All rights reserved.