Documentation
¶
Index ¶
- type HttpException
- func BadRequestException(errors []appDto.CustomErrorDTO) *HttpException
- func ConflictException(error appDto.CustomErrorDTO) *HttpException
- func ForbiddenException(error appDto.CustomErrorDTO) *HttpException
- func InternalServerErrorException(message string) *HttpException
- func NotFoundException(error appDto.CustomErrorDTO) *HttpException
- func UnauthorizedException(error appDto.CustomErrorDTO) *HttpException
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
Click to show internal directories.
Click to hide internal directories.