Documentation ¶
Index ¶
- func Convert2StringArray(err ...error) []string
- type Common
- type Exception
- func BadRequestException(message string, err ...error) *Exception
- func ForbiddenException(message string, err ...error) *Exception
- func InternalServerErrorException(message string, err ...error) *Exception
- func NotFoundException(message string, err ...error) *Exception
- func UnauthorizedException(message string, err ...error) *Exception
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert2StringArray ¶
Types ¶
type Exception ¶
type Exception struct { Code int `json:"code,omitempty"` Message string `json:"message,omitempty"` Errors []string `json:"errors,omitempty"` }
func BadRequestException ¶
func ForbiddenException ¶
func NotFoundException ¶
func UnauthorizedException ¶
Click to show internal directories.
Click to hide internal directories.