Report failed job submission

Posted by Flavio Pompermaier on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Report-failed-job-submission-tp23912.html

Hi to all,
which is the correct wat to report back to the user a failure from a job submission in FLink?
If everything is OK the job run API returns the job id but what if there are error in parameter validation or some other problem? 
Which is the right way to report back to the user the job error detail (apart from throwing an Exception)?

Best,
Flavio