Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidBody = ValidationError{
Msg: "Invalid body",
}
View Source
var ServiceOverloaded = BusinessError{
Msg: "Service is overloaded. Please try again later.",
Code: "SERVICE_OVERLOADED",
}
Functions ¶
This section is empty.
Types ¶
type ApiError ¶
type ApiError interface {
ToResponseEvent() events.APIGatewayV2HTTPResponse
}
type BusinessError ¶
func (BusinessError) Error ¶
func (businessError BusinessError) Error() string
func (BusinessError) ToResponseEvent ¶
func (businessError BusinessError) ToResponseEvent() (responseEvent events.APIGatewayV2HTTPResponse)
type ValidationError ¶
type ValidationError struct {
Msg string
}
func (ValidationError) Error ¶
func (invalid ValidationError) Error() string
func (ValidationError) ToResponseEvent ¶
func (invalid ValidationError) ToResponseEvent() (responseEvent events.APIGatewayV2HTTPResponse)
Click to show internal directories.
Click to hide internal directories.