package
0.0.0-20250223233133-5f2dcf0473d4
Repository: https://github.com/aburavi/snaputils.git
Documentation: pkg.go.dev
# Functions
E builds an error value from its arguments.
KindIs reports whether err is an *Error of the given Kind.
Match compares its two error arguments.
No description provided by the author
OpStack returns the op stack information for an error.
Str returns an error that formats as the given text.
TopError recursively unwraps all errors and retrieves the topmost error.
# Constants
Link target does not exist.
Error from database.
Item already exists.
Internal error or inconsistency.
Invalid operation for this type of item.
Invalid Request.
External I/O error such as network failure.
Item does not exist.
Unclassified error.
Information withheld.
Unanticipated error.
Unauthenticated Request.
Unauthorized is used when a user is authenticated, but is not authorized to access the resource.
Input validation error.
# Structs
Error is the type that implements the error interface.
Make a new type and wrap into Service interface Add expected metrics property to this type.
# Type aliases
Code is a human-readable, short representation of the error.
InputUnwanted is an error type that can be used when validating input fields that have a value, but should not.
Kind defines the kind of error this is, mostly for use by systems such as FUSE that must act differently depending on the error.
No description provided by the author
MissingField is an error type that can be used when validating input fields that do not have a value, but should.
Op describes an operation, usually as the package and method, such as "key/server.Lookup".
Parameter represents the parameter related to the error.
Realm is a description of a protected area, used in the WWW-Authenticate header.
UserName is a string representing a user.