exception

package
v0.0.0-...-cf0249b Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 4 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exception

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

func BadGatewayException

func BadGatewayException(response any, opts ...any) Exception

func BadRequestException

func BadRequestException(response any, opts ...any) Exception

func ConflictException

func ConflictException(response any, opts ...any) Exception

func ForbiddenException

func ForbiddenException(response any, opts ...any) Exception

func GatewayTimeoutException

func GatewayTimeoutException(response any, opts ...any) Exception

func GoneException

func GoneException(response any, opts ...any) Exception

func HTTPVersionNotSupportedException

func HTTPVersionNotSupportedException(response any, opts ...any) Exception

func InternalServerErrorException

func InternalServerErrorException(response any, opts ...any) Exception

func MethodNotAllowedException

func MethodNotAllowedException(response any, opts ...any) Exception

func MisdirectedRequestException

func MisdirectedRequestException(response any, opts ...any) Exception

func NewException

func NewException(response any, code string, opts ...any) Exception

func NotAcceptableException

func NotAcceptableException(response any, opts ...any) Exception

func NotFoundException

func NotFoundException(response any, opts ...any) Exception

func NotImplementedException

func NotImplementedException(response any, opts ...any) Exception

func PreconditionFailedException

func PreconditionFailedException(response any, opts ...any) Exception

func RequestEntityTooLargeException

func RequestEntityTooLargeException(response any, opts ...any) Exception

func RequestTimeoutException

func RequestTimeoutException(response any, opts ...any) Exception

func ServiceUnavailableException

func ServiceUnavailableException(response any, opts ...any) Exception

func TeapotException

func TeapotException(response any, opts ...any) Exception

func UnauthorizedException

func UnauthorizedException(response any, opts ...any) Exception

func UnprocessableEntityException

func UnprocessableEntityException(response any, opts ...any) Exception

func UnsupportedMediaTypeException

func UnsupportedMediaTypeException(response any, opts ...any) Exception

func (Exception) Error

func (exception Exception) Error() string

func (Exception) GetCode

func (exception Exception) GetCode() string

func (Exception) GetHTTPStatus

func (exception Exception) GetHTTPStatus() (int, string)

func (Exception) GetResponse

func (exception Exception) GetResponse() any

func (Exception) Unwrap

func (exception Exception) Unwrap() error

type ExceptionOptions

type ExceptionOptions struct {
	Description string
	Cause       error
}

Jump to

Keyboard shortcuts

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