bdcs-api-0.1.0: BDCS API Server

Safe HaskellNone
LanguageHaskell2010

BDCS.API.Error

Description

Error functions for use with BDCS.API

Synopsis

Documentation

createApiError :: ServantErr -> String -> String -> ServantErr Source #

Create a ServantErr with an error id and a message

base
The default ServantErr response
apiId
An ID to use to link it to the API
message
A human readable message to include with the error