Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBError ¶
type DBError struct { Retryable bool ErrorType DBErrorType // contains filtered or unexported fields }
func NewDBError ¶
func NewDBError(options ...DBErrorOption) *DBError
type DBErrorOption ¶
type DBErrorOption func(dbError *DBError)
func WithError ¶
func WithError(err error) DBErrorOption
func WithRetryableAndError ¶
func WithRetryableAndError(retryable bool, err error) DBErrorOption
func WithRetryableAndTypeAndError ¶
func WithRetryableAndTypeAndError(retryable bool, dbErrorType DBErrorType, err error) DBErrorOption
type DBErrorType ¶
type DBErrorType int
const ( Generic DBErrorType = iota DuplicateEntry LockWaitTimeout IncorrectInteger )
Click to show internal directories.
Click to hide internal directories.