Documentation
¶
Index ¶
- Variables
- func NewHookError(hookField string, hookValue any, code ErrorCode, msg string) error
- func NewInvalidMethodError(param, value string) error
- func NewInvalidPrefixError(param, value string) error
- func NewMissingHookFieldError(hookField string) error
- func NewMissingHostError(param, value string) error
- func NewURLParsingError(param, value string) error
- func NewValidationError(param, value string, code ErrorCode, msg string) error
- type ErrorCode
- type HookError
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEmptyHTTPFile = errors.New("HTTP file is empty")
)
Functions ¶
func NewHookError ¶
func NewInvalidMethodError ¶
func NewInvalidPrefixError ¶
func NewMissingHostError ¶
func NewURLParsingError ¶
Types ¶
type ErrorCode ¶
type ErrorCode string
const (
ErrCodeHookBodyFieldDoesNotExist ErrorCode = "HookBodyFieldNotFound"
)
type ValidationError ¶
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.