Documentation
¶
Overview ¶
Package errorx contains error extensions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SafeErrWrapperBuilder ¶
type SafeErrWrapperBuilder struct {
// ConnID is the connection ID, if any
ConnID int64
// DialID is the dial ID, if any
DialID int64
// Error is the error, if any
Error error
// Operation is the operation that failed
Operation string
// TransactionID is the transaction ID, if any
TransactionID int64
}
SafeErrWrapperBuilder contains a builder for modelx.ErrWrapper that is safe, i.e., behaves correctly when the error is nil.
func (SafeErrWrapperBuilder) MaybeBuild ¶
func (b SafeErrWrapperBuilder) MaybeBuild() (err error)
MaybeBuild builds a new modelx.ErrWrapper, if b.Error is not nil, and returns a nil error value, instead, if b.Error is nil.
Click to show internal directories.
Click to hide internal directories.