errors

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrmError1062

func OrmError1062(err error) bool

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func NewBadRequest

func NewBadRequest() *Error

func NewConflict

func NewConflict() *Error

func NewForbidden

func NewForbidden() *Error

func NewInternalServerError

func NewInternalServerError() *Error

func NewMethodNotAllowed

func NewMethodNotAllowed() *Error

func NewNotFound

func NewNotFound() *Error

func NewUnauthorized

func NewUnauthorized() *Error

func (*Error) Cause

func (this *Error) Cause() error

func (*Error) Code

func (this *Error) Code() string

func (*Error) Error

func (this *Error) Error() string

func (*Error) Message

func (this *Error) Message() string

func (*Error) SetCause

func (this *Error) SetCause(err error) *Error

func (*Error) SetCode

func (this *Error) SetCode(code string) *Error

func (*Error) SetMessage

func (this *Error) SetMessage(format string, args ...interface{}) *Error

func (*Error) Status

func (this *Error) Status() int

Jump to

Keyboard shortcuts

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