Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.5.0, 1.6.0
-
None
-
None
Description
Currently, if the job submission through the JobSubmitHandler fails the error message returned tot he client only says "Job submission failed.".
As outlined in the discussion in this PR we should try to include more information about the actual failure cause.
The proposed solution is to encode the cause for the failure in the Acknowledge that is returned by DispatcherGateway#submitJob.
public class AckOrException { // holds exception, could also be a series of nullable fields private final SuperEither<ExceptionA, ExceptionB, ExceptionC> exception; ... public void throwIfError() throws ExceptionA, ExceptionB, ExceptionC; }