Categorygithub.com/origadmin/toolkits/errors
modulepackage
0.0.36
Repository: https://github.com/origadmin/toolkits.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package rpcerr provides a way to return detailed information for an RPC request error.

# Functions

As determines if the error can be assigned to a specific type.
Cause returns the root cause of the error.
No description provided by the author
ErrInteger creates a new error from a string.
Errorf creates a new error with a formatted message.
No description provided by the author
ErrString creates a new error from a string Deprecated: use errors.NewString instead.
Is checks if the error matches a target error.
Join joins multiple errors into one.
Must panics if the error is not nil.
New creates a new error with the given message.
NewString creates a new error from a string.
No description provided by the author
Stack creates an error with a stack trace from the provided string.
Stackf formats a string and creates an error with a stack trace.
ThreadSafe creates a new ThreadSafeMultiError collection.
Unwrap unwraps the error to its underlying cause.
Valued is a generic function that creates a Valuer interface object encapsulating a value and an error.
WithStack attaches a stack trace to an existing error.
Wrap wraps an existing error with a new message.
Wrapf formats a string and wraps an existing error with a new message.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Append is a helper function that will append more merr.
ListFormatFunc is a helper function that will format the merr.

# Structs

ThreadSafeMultiError represents a collection of merr.

# Interfaces

Valuer defines an interface for retrieving encapsulated values and error information.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author