Documentation ¶
Index ¶
- Constants
- type AppError
- type Error
- func NewBindingExistsError(msg string) *Error
- func NewBindingNotFoundError(msg string) *Error
- func NewExchangeExistsError(msg string) *Error
- func NewExchangeNotFoundError(msg string) *Error
- func NewMessageNotFoundError(msg string) *Error
- func NewParamInvalidError(param string, msg string) *Error
- func NewQueueEmptyError(msg string) *Error
- func NewQueueExistsError(msg string) *Error
- func NewQueueNonDeletableError(msg string) *Error
- func NewQueueNotFoundError(msg string) *Error
- func NewValidationError(errors []validator.FieldError) *Error
- type ValidationError
Constants ¶
View Source
const BindingExistsErrorCode = "BINDING_ALREADY_EXISTS"
View Source
const BindingNotFoundErrorCode = "BINDING_NOT_FOUND"
View Source
const ExchangeExistsErrorCode = "EXCHANGE_ALREADY_EXISTS"
View Source
const ExchangeNotFoundErrorCode = "EXCHANGE_NOT_FOUND"
View Source
const MessageNotFoundErrorCode = "MESSAGE_NOT_FOUND"
View Source
const ParamInvalidErrorCode = "INVALID_PARAM"
View Source
const QueueEmptyErrorCode = "QUEUE_EMPTY"
View Source
const QueueExistsErrorCode = "QUEUE_ALREADY_EXISTS"
View Source
const QueueNonDeletableErrorCode = "QUEUE_NON_DELETABLE"
View Source
const QueueNotFoundErrorCode = "QUEUE_NOT_FOUND"
View Source
const ValidationErrorCode = "VALIDATION_ERROR"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Code string `json:"code,omitempty"` Param string `json:"param,omitempty"` Message string `json:"message,omitempty"` Errors []ValidationError `json:"errors,omitempty"` }
func NewBindingExistsError ¶
func NewBindingNotFoundError ¶
func NewExchangeExistsError ¶
func NewMessageNotFoundError ¶
func NewParamInvalidError ¶
func NewQueueEmptyError ¶
func NewQueueExistsError ¶
func NewQueueNotFoundError ¶
func NewValidationError ¶
func NewValidationError(errors []validator.FieldError) *Error
func (*Error) GetMessage ¶
type ValidationError ¶
Source Files ¶
- error.go
- error_binding_already_exists.go
- error_binding_not_found.go
- error_exchange_already_exists.go
- error_exchange_not_found.go
- error_message_not_found.go
- error_param_invalid.go
- error_queue_already_exists.go
- error_queue_empty.go
- error_queue_non_deletable.go
- error_queue_not_found.go
- error_validation.go
Click to show internal directories.
Click to hide internal directories.