Documentation ¶
Overview ¶
Package ogenerrors contains ogen errors type definitions and helpers.
Index ¶
- type DecodeParamsError
- func (d *DecodeParamsError) Code() int
- func (d *DecodeParamsError) Error() string
- func (d *DecodeParamsError) Format(s fmt.State, verb rune)
- func (d *DecodeParamsError) FormatError(p errors.Printer) (next error)
- func (d *DecodeParamsError) OperationID() string
- func (d *DecodeParamsError) Unwrap() error
- type DecodeRequestError
- func (d *DecodeRequestError) Code() int
- func (d *DecodeRequestError) Error() string
- func (d *DecodeRequestError) Format(s fmt.State, verb rune)
- func (d *DecodeRequestError) FormatError(p errors.Printer) (next error)
- func (d *DecodeRequestError) OperationID() string
- func (d *DecodeRequestError) Unwrap() error
- type Error
- type SecurityError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecodeParamsError ¶
DecodeParamsError reports that error caused by params decoder.
func (*DecodeParamsError) Code ¶
func (d *DecodeParamsError) Code() int
Code returns http code to respond.
func (*DecodeParamsError) Error ¶
func (d *DecodeParamsError) Error() string
Error implements error.
func (*DecodeParamsError) Format ¶ added in v0.43.0
func (d *DecodeParamsError) Format(s fmt.State, verb rune)
Format implements fmt.Formatter.
func (*DecodeParamsError) FormatError ¶ added in v0.43.0
func (d *DecodeParamsError) FormatError(p errors.Printer) (next error)
FormatError implements errors.Formatter.
func (*DecodeParamsError) OperationID ¶
func (d *DecodeParamsError) OperationID() string
OperationID returns operation ID of failed request.
func (*DecodeParamsError) Unwrap ¶
func (d *DecodeParamsError) Unwrap() error
Unwrap returns child error.
type DecodeRequestError ¶
DecodeRequestError reports that error caused by request decoder.
func (*DecodeRequestError) Code ¶
func (d *DecodeRequestError) Code() int
Code returns http code to respond.
func (*DecodeRequestError) Error ¶
func (d *DecodeRequestError) Error() string
Error implements error.
func (*DecodeRequestError) Format ¶ added in v0.43.0
func (d *DecodeRequestError) Format(s fmt.State, verb rune)
Format implements fmt.Formatter.
func (*DecodeRequestError) FormatError ¶ added in v0.43.0
func (d *DecodeRequestError) FormatError(p errors.Printer) (next error)
FormatError implements errors.Formatter.
func (*DecodeRequestError) OperationID ¶
func (d *DecodeRequestError) OperationID() string
OperationID returns operation ID of failed request.
func (*DecodeRequestError) Unwrap ¶
func (d *DecodeRequestError) Unwrap() error
Unwrap returns child error.
type Error ¶
type Error interface { OperationID() string Code() int errors.Wrapper errors.Formatter fmt.Formatter error }
Error is ogen error.
type SecurityError ¶
SecurityError reports that error caused by security handler.
func (*SecurityError) Format ¶ added in v0.43.0
func (d *SecurityError) Format(s fmt.State, verb rune)
Format implements fmt.Formatter.
func (*SecurityError) FormatError ¶ added in v0.43.0
func (d *SecurityError) FormatError(p errors.Printer) (next error)
FormatError implements errors.Formatter.
func (*SecurityError) OperationID ¶
func (d *SecurityError) OperationID() string
OperationID returns operation ID of failed request.