errors

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SeataError

type SeataError struct {
	Code    TransactionErrorCode
	Message string
	Parent  error
}

func New

func New(code TransactionErrorCode, msg string, parent error) *SeataError

func (SeataError) Error

func (e SeataError) Error() string

type TransactionErrorCode

type TransactionErrorCode int32
const (
	// TransactionErrorCodeUnknown Unknown transaction errors code.
	TransactionErrorCodeUnknown TransactionErrorCode = iota

	// TransactionErrorCodeBeginFailed BeginFailed
	TransactionErrorCodeBeginFailed

	// TransactionErrorCodeLockKeyConflict Lock key conflict transaction errors code.
	TransactionErrorCodeLockKeyConflict

	// TransactionErrorCodeIO transaction errors code.
	TransactionErrorCodeIO

	// TransactionErrorCodeBranchRollbackFailedRetriable Branch rollback failed retriable transaction errors code.
	TransactionErrorCodeBranchRollbackFailedRetriable

	// TransactionErrorCodeBranchRollbackFailedUnretriable Branch rollback failed unretriable transaction errors code.
	TransactionErrorCodeBranchRollbackFailedUnretriable

	// TransactionErrorCodeBranchRegisterFailed Branch register failed transaction errors code.
	TransactionErrorCodeBranchRegisterFailed

	// TransactionErrorCodeBranchReportFailed Branch report failed transaction errors code.
	TransactionErrorCodeBranchReportFailed

	// TransactionErrorCodeLockableCheckFailed Lockable check failed transaction errors code.
	TransactionErrorCodeLockableCheckFailed

	// TransactionErrorCodeBranchTransactionNotExist Branch transaction not exist transaction errors code.
	TransactionErrorCodeBranchTransactionNotExist

	// TransactionErrorCodeGlobalTransactionNotExist Global transaction not exist transaction errors code.
	TransactionErrorCodeGlobalTransactionNotExist

	// TransactionErrorCodeGlobalTransactionNotActive Global transaction not active transaction errors code.
	TransactionErrorCodeGlobalTransactionNotActive

	// TransactionErrorCodeGlobalTransactionStatusInvalid Global transaction status invalid transaction errors code.
	TransactionErrorCodeGlobalTransactionStatusInvalid

	// TransactionErrorCodeFailedToSendBranchCommitRequest Failed to send branch commit request transaction errors code.
	TransactionErrorCodeFailedToSendBranchCommitRequest

	// TransactionErrorCodeFailedToSendBranchRollbackRequest Failed to send branch rollback request transaction errors code.
	TransactionErrorCodeFailedToSendBranchRollbackRequest

	// TransactionErrorCodeFailedToAddBranch Failed to add branch transaction errors code.
	TransactionErrorCodeFailedToAddBranch

	// TransactionErrorCodeFailedLockGlobalTranscation Failed to lock global transaction errors code.
	TransactionErrorCodeFailedLockGlobalTranscation

	// TransactionErrorCodeFailedWriteSession FailedWriteSession
	TransactionErrorCodeFailedWriteSession

	// FailedStore Failed to holder errors code
	FailedStore

	// LockKeyConflictFailFast Lock key conflict fail fast transaction exception code.
	LockKeyConflictFailFast

	// TccFenceDbDuplicateKeyError Insert tcc fence record duplicate key errors
	TccFenceDbDuplicateKeyError

	// RollbackFenceError rollback tcc fence error
	RollbackFenceError

	// CommitFenceError commit tcc fence  error
	CommitFenceError

	// TccFenceDbError query tcc fence prepare sql failed
	TccFenceDbError

	// PrepareFenceError prepare tcc fence error
	PrepareFenceError

	// FenceBusinessError callback business method maybe return this error type
	FenceBusinessError

	// FencePhaseError have fence phase but is not illegal value
	FencePhaseError
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL