errors

package
v1.88.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorAlreadyExists

type ErrorAlreadyExists struct {
	ErrorDetail
}

func (*ErrorAlreadyExists) Error

func (e *ErrorAlreadyExists) Error() string

type ErrorBadRequest

type ErrorBadRequest struct {
	ErrorDetail
}

func (*ErrorBadRequest) Error

func (e *ErrorBadRequest) Error() string

type ErrorDetail

type ErrorDetail struct {
	Resource string `json:"resource"`
	Field    string `json:"field"`
	Value    string `json:"value"`
	Message  string `json:"message"`
}

type ErrorNotFound

type ErrorNotFound struct {
	ErrorDetail
}

func (*ErrorNotFound) Error

func (e *ErrorNotFound) Error() string

type ErrorResponse

type ErrorResponse struct {
	Message string        `json:"message"`
	Errors  []ErrorDetail `json:"errors"`
}

func NewErrorResponse

func NewErrorResponse(err error) (*ErrorResponse, int)

type ErrorSalechannelNotAllowed

type ErrorSalechannelNotAllowed struct {
	ErrorDetail
}

func (*ErrorSalechannelNotAllowed) Error

type ErrorUnauthorized

type ErrorUnauthorized struct {
	ErrorDetail
}

func (*ErrorUnauthorized) Error

func (e *ErrorUnauthorized) Error() string

type ErrorUserNotActive

type ErrorUserNotActive struct {
	ErrorDetail
}

func (*ErrorUserNotActive) Error

func (e *ErrorUserNotActive) Error() string

Jump to

Keyboard shortcuts

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