algorithmia-java icon indicating copy to clipboard operation
algorithmia-java copied to clipboard

AlgoFailure interface

Open Argoday opened this issue 8 years ago • 0 comments

Current: if(result.isFailure(){ AlgorithmException e = ((AlgoFailure)result).error e.getMessage(); e.printStackTrace(); }


This isn't a good experience and does not surface all of the available data in the response

Needed: if(result.isFailure(){ AlgoFailure fail = (AlgoFailure)result; fail.getMessage(); fail.getStacktrace(); fail.getMetadata().getDuration(); fail.getMetadata().getStdout(); }

Argoday avatar Sep 04 '15 19:09 Argoday