exception

package
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransactionException

type TransactionException struct {
	Code    apis.ExceptionCode
	Message string
	Err     error
}

TransactionException

func NewTransactionException

func NewTransactionException(err error, opts ...TransactionExceptionOption) *TransactionException

NewTransactionException return a pointer to TransactionException

func (*TransactionException) Error

func (e *TransactionException) Error() string

Error

func (*TransactionException) Unwrap

func (e *TransactionException) Unwrap() error

Unwrap

type TransactionExceptionOption

type TransactionExceptionOption func(exception *TransactionException)

TransactionExceptionOption for edit TransactionException

func WithExceptionCode

func WithExceptionCode(code apis.ExceptionCode) TransactionExceptionOption

WithExceptionCode edit exception code in TransactionException

func WithMessage

func WithMessage(message string) TransactionExceptionOption

WithMessage edit message in TransactionException

Jump to

Keyboard shortcuts

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