[
https://issues.apache.org/jira/browse/BEAM-12969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Artur Khanin updated BEAM-12969:
--------------------------------
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:
{code:java}
func InvalidArgumentError(title string, message string) error {
status.Errorf(codes.InvalidArgument, title + " " + message)
}{code}
was:
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:
{code:java}
func InvalidArgumentError(message string) error {
status.Errorf(codes.InvalidArgument, "Custom title: " + message)
}{code}
> [Playground] Define and implement errors of the application
> -----------------------------------------------------------
>
> Key: BEAM-12969
> URL: https://issues.apache.org/jira/browse/BEAM-12969
> Project: Beam
> Issue Type: Sub-task
> Components: beam-playground
> Reporter: Artur Khanin
> Priority: P3
>
> 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:
>
> {code:java}
> func InvalidArgumentError(title string, message string) error {
> status.Errorf(codes.InvalidArgument, title + " " + message)
> }{code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)