Add more constructors in the fractal-api specific Exception classes
The exceptions defined in the "fractal-api" module (as of the stable version 2.0.2) are all in the form:
public ApiExceptionName extends Exception {
public ApiExceptionName(String message) { super(message); } }
This prevents wrapping other eventually raised exceptions inside one specific fractal-api exception, which could be convienent for example in a scenario like:
// LifeCycleController#starFc() implementation in a certain component void startFc() throws IllegalLifeCycleException {
try{ doSomething(); // this could raise a SomeException }catch(SomeException wrapped){ throw new IllegalLifeCycleException("Unable to blabla", wrapped); } }
In my sandbox, the "fractal-api" sub folder, I added some constructors to the fractal api exceptions. I launched all the "julia" module tests against it, and nothing breaks.
If you find it useful, I would like to port them back in the trunk and do a minor release (2.0.3).