generate exceptions in implementation
This commit is contained in:
18
serviceErrorCodes.yaml
Normal file
18
serviceErrorCodes.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
# ONLY USE THE ERRORCODES 400 and 500 HERE
|
||||
Exceptions:
|
||||
- Exception: NotDataFoundException
|
||||
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
|
||||
# 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
|
Reference in New Issue
Block a user