genericdatabaseapiservice/serviceErrorCodes.yaml
2021-12-15 14:58:24 +01:00

34 lines
1.3 KiB
YAML

# ONLY USE THE ERRORCODES 400 and 500 HERE
Exceptions:
- Exception: NoDataFoundException
ErrorCode: 400
ServiceErrorCode: 10001
ErrorMessage: item not found
ErrorInfoURL: https://google.com
- Exception: TooMuchDataFoundException
ErrorCode: 400
ServiceErrorCode: 10002
ErrorMessage: too many items found
ErrorInfoURL: https://google.com
- Exception: UnsupportedDataTypeException
ErrorCode: 500
ServiceErrorCode: 10003
ErrorMessage: unsupported data type, review the DbService implementation
ErrorInfoURL: https://google.com
- Exception: UnknownDatabaseTagException
ErrorCode: 500
ServiceErrorCode: 10004
ErrorMessage: the database tag mentioned in the API spec is not configured on the server, review the server configuration
ErrorInfoURL: https://google.com
- Exception: StringReplacementNotAllowedException
ErrorCode: 500
ServiceErrorCode: 10005
ErrorMessage: parameter binding by string replacement is not allowed for this select, review the openapi specifiction
ErrorInfoURL: https://google.com
# Make sure "Exception: Exception" is the last entry in the list
- Exception: Exception
ErrorCode: 500
ServiceErrorCode: 10000
ErrorMessage: catch-all message
ErrorInfoURL: https://google.com