Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetailedError ¶
type DetailedError struct {
// contains filtered or unexported fields
}
func AsDetailedError ¶
func AsDetailedError(err error) (*DetailedError, bool)
AsDetailedError attempts to cast the given error to a DetailedError instance.
func New ¶
func New(op Op) *DetailedError
New creates a new error with the given Op and a default message: "Internal system error." The Cause is set to nil.
func (*DetailedError) Cause ¶
func (e *DetailedError) Cause() error
Cause returns the cause of a DetailedError instance.
func (*DetailedError) Err ¶
func (e *DetailedError) Err(err error) *DetailedError
Err sets the cause for a DetailedError instance.
func (*DetailedError) Error ¶
func (e *DetailedError) Error() string
Error implements the error interface.
func (*DetailedError) Errorf ¶
func (e *DetailedError) Errorf(format string, a ...any) *DetailedError
Errorf formats the error message for a DetailedError instance.
Syntactically the same as fmt.Errorf.
func (*DetailedError) Msg ¶
func (e *DetailedError) Msg(msg string) *DetailedError
Msg sets the human-readable error message for a DetailedError instance.
Click to show internal directories.
Click to hide internal directories.