genericdatabaseapiservice/serviceErrorCodes.yaml

24 lines
796 B
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
# 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