- } catch (UnsupportedRuntimeException e) {\r
- writer.println(FAILED);\r
- // If executable is not supported than none of the presets are\r
- // going to work\r
- throw new UnsupportedRuntimeException(e);\r
- } catch (JobSubmissionException e) {\r
- // TODO custom message\r
- writer.println(FAILED);\r
- writer.println();\r
- writer.println(e.getLocalizedMessage());\r
- e.printStackTrace(writer);\r
- continue;\r
- } catch (WrongParameterException e) {\r
- // TODO custom message\r
- writer.println(FAILED);\r
- writer.println();\r
- writer.println(e.getLocalizedMessage());\r
- e.printStackTrace(writer);\r
- continue;\r
- } catch (ResultNotAvailableException e) {\r
- // TODO custom message\r
- writer.println(FAILED);\r
- writer.println();\r
- writer.println(e.getLocalizedMessage());\r
- e.printStackTrace(writer);\r
+ } catch (Exception e) {\r
+ if (e instanceof UnsupportedRuntimeException) {\r
+ // If executable is not supported than none of the presets\r
+ // are\r
+ // going to work\r
+ throw (UnsupportedRuntimeException) e;\r
+ } else {\r
+ reportException(e);\r
+ }\r