package
6.1.0+incompatible
Repository: https://github.com/apache/trafficcontrol.git
Documentation: pkg.go.dev
# Functions
AddErrorCode takes an error and returns an instance satisfying the Error interface.
Extract the tag annotations from a struct into a string array.
NewError constructs an error with a code.
NewErrorContext constructs an error context with list of valid codes.
SortErrors sorts the list of errors lexically.
No description provided by the author
# Constants
when a default message already exists.
when a bad error code is given in creation of new error.
when the fmt string isn't a string.
when the error context is modifed after having created an error.
when creating an error with no error message, default message wasn't found.
# Structs
ErrorContext regulates which error codes can be made and keeps a count of all the errors created through the context.
# Interfaces
Error describes an interface that supports error codes.
# Type aliases
No description provided by the author