error

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SystemError

type SystemError struct {
	StatusCode int
	Err        error
}

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) Error

func (e *SystemError) Error() string

Error string

func (*SystemError) Extensions added in v0.0.14

func (e *SystemError) Extensions() map[string]interface{}

Extensions error Extensions

Jump to

Keyboard shortcuts

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