Versions in this module Expand all Collapse all v0 v0.7.0 May 28, 2025 Changes in this version + var ErrEmptyHTTPFile = errors.New("HTTP file is empty") + 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 string + const ErrCodeHookBodyFieldDoesNotExist + const ErrCodeInvalidMethod + const ErrCodeInvalidPrefix + const ErrCodeMissingHost + const ErrCodeURLParsing + type HookError struct + Code ErrorCode + HookField string + HookValue any + Msg string + func (e *HookError) Error() string + type ValidationError struct + Code ErrorCode + Msg string + Param string + Value string + func (e *ValidationError) Error() string