Documentation ¶
Index ¶
- func IsApplicationError(e error) bool
- func IsBadRequestError(e error) bool
- func IsConflictError(e error) bool
- func IsCustomError(err error) bool
- func IsDomainError(e error) bool
- func IsForbiddenError(e error) bool
- func IsInternalServerError(e error) bool
- func IsMarshalingError(e error) bool
- func IsNotFoundError(e error) bool
- func IsUnAuthorizedError(e error) bool
- func IsUnMarshalingError(e error) bool
- func IsValidationError(e error) bool
- func NewApplicationError(message string, code int, details map[string]string) error
- func NewApplicationErrorWrap(err error, message string, code int, details map[string]string) error
- func NewBadRequestError(message string, code int, details map[string]string) error
- func NewBadRequestErrorWrap(err error, message string, code int, details map[string]string) error
- func NewConflictError(message string, code int, details map[string]string) error
- func NewConflictErrorWrap(err error, message string, code int, details map[string]string) error
- func NewDomainError(message string, code int, details map[string]string) error
- func NewDomainErrorWrap(err error, message string, code int, details map[string]string) error
- func NewForbiddenError(message string, code int, details map[string]string) error
- func NewForbiddenErrorWrap(err error, message string, code int, details map[string]string) error
- func NewInternalServerError(message string, code int, details map[string]string) error
- func NewInternalServerErrorWrap(err error, message string, code int, details map[string]string) error
- func NewMarshalingError(message string, code int, details map[string]string) error
- func NewMarshalingErrorWrap(err error, message string, code int, details map[string]string) error
- func NewNotFoundError(message string, code int, details map[string]string) error
- func NewNotFoundErrorWrap(err error, message string, code int, details map[string]string) error
- func NewUnAuthorizedError(message string, code int, details map[string]string) error
- func NewUnAuthorizedErrorWrap(err error, message string, code int, details map[string]string) error
- func NewUnMarshalingError(message string, code int, details map[string]string) error
- func NewUnMarshalingErrorWrap(err error, message string, code int, details map[string]string) error
- func NewValidationError(message string, code int, details map[string]string) error
- func NewValidationErrorWrap(err error, message string, code int, details map[string]string) error
- type ApplicationError
- type BadRequestError
- type ConflictError
- type CustomError
- type DomainError
- type ForbiddenError
- type InternalServerError
- type MarshalingError
- type NotFoundError
- type UnMarshalingError
- type UnauthorizedError
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsApplicationError ¶
func IsBadRequestError ¶
func IsConflictError ¶
func IsCustomError ¶
func IsDomainError ¶
func IsForbiddenError ¶
func IsInternalServerError ¶
func IsMarshalingError ¶
func IsNotFoundError ¶
func IsUnAuthorizedError ¶
func IsUnMarshalingError ¶
func IsValidationError ¶
func NewApplicationError ¶
func NewApplicationErrorWrap ¶
func NewBadRequestError ¶
func NewBadRequestErrorWrap ¶
func NewConflictError ¶
func NewConflictErrorWrap ¶
func NewDomainError ¶
func NewDomainErrorWrap ¶
func NewForbiddenError ¶
func NewForbiddenErrorWrap ¶
func NewInternalServerError ¶
func NewMarshalingError ¶
func NewMarshalingErrorWrap ¶
func NewNotFoundError ¶
func NewNotFoundErrorWrap ¶
func NewUnAuthorizedError ¶
func NewUnMarshalingError ¶
func NewValidationError ¶
Types ¶
type ApplicationError ¶
type ApplicationError interface { CustomError IsApplicationError() bool }
type BadRequestError ¶
type BadRequestError interface { CustomError IsBadRequestError() bool }
type ConflictError ¶
type ConflictError interface { CustomError IsConflictError() bool }
type CustomError ¶
type CustomError interface { error IsCustomError() bool Message() string Code() int Details() map[string]string }
func AsCustomError ¶
func AsCustomError(err error) CustomError
func NewCustomError ¶
type DomainError ¶
type DomainError interface { CustomError IsDomainError() bool }
type ForbiddenError ¶
type ForbiddenError interface { CustomError IsForbiddenError() bool }
type InternalServerError ¶
type InternalServerError interface { CustomError IsInternalServerError() bool }
type MarshalingError ¶
type MarshalingError interface { CustomError IsMarshalingError() bool }
type NotFoundError ¶
type NotFoundError interface { CustomError IsNotFoundError() bool }
type UnMarshalingError ¶
type UnMarshalingError interface { CustomError IsUnMarshalingError() bool }
type UnauthorizedError ¶
type UnauthorizedError interface { CustomError }
type ValidationError ¶
type ValidationError interface { BadRequestError IsValidationError() bool }
Click to show internal directories.
Click to hide internal directories.