appException

package
v0.0.0-...-e9ec6a3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpException

type HttpException struct {
	Errors     []appDto.CustomErrorDTO
	StatusCode int
}

func BadRequestException

func BadRequestException(errors []appDto.CustomErrorDTO) *HttpException

func ConflictException

func ConflictException(error appDto.CustomErrorDTO) *HttpException

func ForbiddenException

func ForbiddenException(error appDto.CustomErrorDTO) *HttpException

func InternalServerErrorException

func InternalServerErrorException(message string) *HttpException

func NotFoundException

func NotFoundException(error appDto.CustomErrorDTO) *HttpException

func UnauthorizedException

func UnauthorizedException(error appDto.CustomErrorDTO) *HttpException

func (*HttpException) Error

func (he *HttpException) Error() string

func (*HttpException) GetErrors

func (he *HttpException) GetErrors() []appDto.CustomErrorDTO

func (*HttpException) GetStatusCode

func (he *HttpException) GetStatusCode() int

Jump to

Keyboard shortcuts

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