You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Aydar Zaynutdinov (Jira)" <ji...@apache.org> on 2021/10/07 05:40:00 UTC
[jira] [Updated] (BEAM-12969) [Playground] Define and implement
errors of the application
[ https://issues.apache.org/jira/browse/BEAM-12969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aydar Zaynutdinov updated BEAM-12969:
-------------------------------------
Resolution: Implemented
Status: Resolved (was: In Progress)
> [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
> Assignee: Aydar Zaynutdinov
> Priority: P3
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> 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)