Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMethodNotImplemented is returned when a certain method is not implemented. // It can be used instead of panicking for operations that are not intended to halt execution. ErrMethodNotImplemented error = errors.New("method no implemented") // ErrInvalidURL is returned when an invalid URL callback value is passed on a request. ErrInvalidURL = errors.New("invalid URL") )
Functions ¶
func WithFunctionContext ¶
WithFunctionContext wraps an error with information about the function that generated the error. `skip` is the number of stack frames that need to be removed to reach the function that generated the error. If this function is called to wrap an error on the function that generated the error, then `skip` should be set to 1. Higher values of `skip` are necessary to create error wrapping functions that make use of this function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.