Details
-
Sub-task
-
Status: Resolved
-
P3
-
Resolution: Implemented
-
None
-
None
Description
The server app should have the following errors defined for the corresponding cases:
- InvalidArgument – e.g. empty input code.
- NotFound – e.g. jobId doesn't exist.
- Internal – e.g. some internal error on the server.
The errors above should be Implemented as Go errors in one file. For example:
func InvalidArgumentError(title string, message string) error {
status.Errorf(codes.InvalidArgument, title + " " + message)
}
Attachments
Issue Links
- links to