ogenerrors

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 2 Imported by: 160

Documentation

Overview

Package ogenerrors contains ogen errors type definitions and helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodeParamsError

type DecodeParamsError struct {
	Operation string
	Err       error
}

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) OperationID

func (d *DecodeParamsError) OperationID() string

func (*DecodeParamsError) Unwrap

func (d *DecodeParamsError) Unwrap() error

Unwrap returns child error.

type DecodeRequestError

type DecodeRequestError struct {
	Operation string
	Err       error
}

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) OperationID

func (d *DecodeRequestError) OperationID() string

func (*DecodeRequestError) Unwrap

func (d *DecodeRequestError) Unwrap() error

Unwrap returns child error.

type Error

type Error interface {
	OperationID() string
	Code() int
	Unwrap() error
	error
}

Error is ogen error.

type SecurityError

type SecurityError struct {
	Operation string
	Security  string
	Err       error
}

SecurityError reports that error caused by security handler.

func (*SecurityError) Code

func (d *SecurityError) Code() int

Code returns http code to respond.

func (*SecurityError) Error

func (d *SecurityError) Error() string

Error implements error.

func (*SecurityError) OperationID

func (d *SecurityError) OperationID() string

func (*SecurityError) Unwrap

func (d *SecurityError) Unwrap() error

Unwrap returns child error.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL