2021-12-02 11:59:10 +01:00
|
|
|
# ONLY USE THE ERRORCODES 400 and 500 HERE
|
|
|
|
Exceptions:
|
2021-12-02 15:57:58 +01:00
|
|
|
- Exception: NoDataFoundException
|
2021-12-02 11:59:10 +01:00
|
|
|
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
|
2021-12-02 15:57:58 +01:00
|
|
|
- Exception: UnsupportedDataTypeException
|
|
|
|
ErrorCode: 500
|
|
|
|
ServiceErrorCode: 10003
|
|
|
|
ErrorMessage: unsupported data type, review the DbService implementation
|
|
|
|
ErrorInfoURL: https://google.com
|
2021-12-07 15:55:23 +01:00
|
|
|
- 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
|
2021-12-15 14:58:24 +01:00
|
|
|
- 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
|
2021-12-02 11:59:10 +01:00
|
|
|
# Make sure "Exception: Exception" is the last entry in the list
|
|
|
|
- Exception: Exception
|
|
|
|
ErrorCode: 500
|
|
|
|
ServiceErrorCode: 10000
|
2021-12-15 14:58:24 +01:00
|
|
|
ErrorMessage: catch-all message
|
2021-12-02 11:59:10 +01:00
|
|
|
ErrorInfoURL: https://google.com
|