Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmptyResult no results found for query params err ErrEmptyResult = errors.New("no results found") // ErrNotFound obj not found err ErrNotFound = errors.New("not found") // ErrNotValidAsset invalid asset specified ErrNotValidAsset = errors.New("asset not valid") // ErrInvalid request ErrInvalid = errors.New("invalid request") // ErrDuplicate duplicate error ErrDuplicate = errors.New("duplicate resource") )
Functions ¶
func BalanceErrorHandler ¶
func BalanceErrorHandler(label string, err error) middleware.Responder
BalanceErrorHandler handles
func ErrorResponse ¶
func ErrorResponse(err error) *models.ErrorResponse
ErrorResponse wraps the error in the api standard models.ErrorResponse object
func HealthErrorHandler ¶
func HealthErrorHandler(label string, err error) middleware.Responder
HealthErrorHandler handles error resp from calls to the health endpoint
func TransactionErrorHandler ¶
func TransactionErrorHandler(label string, err error) middleware.Responder
TransactionErrorHandler handles
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.