Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoResponderFound = errors.New("no responder found") // nolint: revive
NoResponderFound is returned when no responders are found for a given HTTP method and URL.
Functions ¶
func CheckStackTracer ¶
CheckStackTracer checks for specific error returned by NewNotFoundResponder function or Trace Responder method.
func GetSubmatches ¶
Types ¶
type ErrorNoResponderFoundMistake ¶ added in v1.2.0
type ErrorNoResponderFoundMistake struct { Kind string // "method" or "URL" Orig string // original wrong method/URL, without any matching responder Suggested string // suggested method/URL with a matching responder }
ErrorNoResponderFoundMistake encapsulates a NoResponderFound error probably due to a user error on the method or URL path.
func (*ErrorNoResponderFoundMistake) Error ¶ added in v1.2.0
func (e *ErrorNoResponderFoundMistake) Error() string
Error implements error interface.
func (*ErrorNoResponderFoundMistake) Unwrap ¶ added in v1.2.0
func (e *ErrorNoResponderFoundMistake) Unwrap() error
Unwrap implements the interface needed by errors.Unwrap.
type StackTracer ¶
type StackTracer struct { CustomFn func(...interface{}) Err error }
func (StackTracer) Unwrap ¶ added in v1.1.0
func (s StackTracer) Unwrap() error
Unwrap implements the interface needed by errors.Unwrap.
Click to show internal directories.
Click to hide internal directories.