Safe Haskell | None |
---|---|
Language | Haskell2010 |
BDCS.API.Error
Description
Error functions for use with BDCS.API
- createApiError :: ServantErr -> String -> String -> ServantErr
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