Documentation ¶
Index ¶
Constants ¶
View Source
const ( // 0 is OK. SUCCESS = iota INFO WARN // Group 1: Internal errors ERROR_START = 1000 + iota INTERNAL_ERROR NYI ERROR_FUNCTION_PARAMETER // Group 2: numeric DIVIVISION_BY_ZERO = 2000 + iota OUT_OF_RANGE // Group 3: invalid input BAD_CONFIGURATION = 3000 + iota INVALID_INPUT // Group 4: unexpected state INVALID_STATE = 4000 + iota // group 5: rpc timeout // ErrRPCTimeout rpc timeout ErrRPCTimeout = 5000 + iota // ErrClientClosed rpc client closed ErrClientClosed // ErrBackendClosed backend closed ErrBackendClosed // ErrStreamClosed rpc stream closed ErrStreamClosed // ErrNoAvailableBackend no available backend ErrNoAvailableBackend // Group 10: txn // ErrTxnAborted read and write a transaction that has been rolled back. ErrTxnAborted = 10000 + iota // ErrTxnClosed read and write a transaction after Commit or Rollback method called. ErrTxnClosed // ErrTxnWriteConflict write conflict error for concurrent transactions ErrTxnWriteConflict // ErrMissingTxn missing transaction error ErrMissingTxn // ErrUnreslovedConflict read transaction encounters unresloved data ErrUnreslovedConflict )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
func NewInternalError ¶
func NewPanicError ¶
func NewPanicError(v interface{}) *Error
Convert a runtime panic to internal error.
Click to show internal directories.
Click to hide internal directories.