genericdatabaseapiservice/serviceErrorCodes.yaml

29 lines
1.0 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
# Make sure "Exception: Exception" is the last entry in the list
- Exception: Exception
ErrorCode: 500
ServiceErrorCode: 10000
ErrorMessage: INSERT_EXCEPTION_MESSAGE
ErrorInfoURL: https://google.com