Documentation
¶
Index ¶
- type SystemError
- func BadRequest() *SystemError
- func Conflict() *SystemError
- func CustomBadRequest(message string) *SystemError
- func CustomConflict(message string) *SystemError
- func CustomForbiddenAccess(message string) *SystemError
- func CustomInternalSystemError(message string) *SystemError
- func CustomNotFound(message string) *SystemError
- func CustomSystemError(code int, message string) *SystemError
- func CustomUnauthorizedAccess(message string) *SystemError
- func ForbiddenAccess() *SystemError
- func InternalSystemError() *SystemError
- func NotFound() *SystemError
- func UnauthorizedAccess() *SystemError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SystemError ¶
SystemError type
func BadRequest ¶ added in v0.0.14
func BadRequest() *SystemError
BadRequest error
Similar with: 400 Http Status Code
func Conflict ¶ added in v0.0.14
func Conflict() *SystemError
Conflict error
Similar withL 409 Http Status Code
func CustomBadRequest ¶ added in v0.0.14
func CustomBadRequest(message string) *SystemError
CustomBadRequest custom bad request error
func CustomConflict ¶ added in v0.0.14
func CustomConflict(message string) *SystemError
CustomConflict error
Similar withL 409 Http Status Code
func CustomForbiddenAccess ¶
func CustomForbiddenAccess(message string) *SystemError
CustomForbiddenAccess error
func CustomInternalSystemError ¶ added in v0.0.14
func CustomInternalSystemError(message string) *SystemError
CustomInternalSystemError error
func CustomNotFound ¶ added in v0.0.14
func CustomNotFound(message string) *SystemError
CustomNotFound error
func CustomSystemError ¶ added in v0.0.14
func CustomSystemError(code int, message string) *SystemError
CustomSystemError custom SystemError
func CustomUnauthorizedAccess ¶ added in v0.0.14
func CustomUnauthorizedAccess(message string) *SystemError
CustomUnauthorizedAccess error
func ForbiddenAccess ¶
func ForbiddenAccess() *SystemError
ForbiddenAccess error
Similar with: 403 Http Status Code
func InternalSystemError ¶ added in v0.0.14
func InternalSystemError() *SystemError
InternalSystemError error
Similar with: 500 Http Status Code
func NotFound ¶ added in v0.0.14
func NotFound() *SystemError
NotFound error
Similar withL 404 Http Status Code
func UnauthorizedAccess ¶ added in v0.0.14
func UnauthorizedAccess() *SystemError
UnauthorizedAccess error
Similar with: 401 Http Status Code
func (*SystemError) Extensions ¶ added in v0.0.14
func (e *SystemError) Extensions() map[string]interface{}
Extensions error Extensions
Click to show internal directories.
Click to hide internal directories.