List of usage examples for org.springframework.boot.cli.command.init ReportableException ReportableException
public ReportableException(String message, Throwable cause)
From source file:org.springframework.boot.cli.command.init.InitializrService.java
private InitializrServiceMetadata parseJsonMetadata(HttpEntity httpEntity) throws IOException { try {//from www . j ava2s . c om return new InitializrServiceMetadata(getContentAsJson(httpEntity)); } catch (JSONException ex) { throw new ReportableException("Invalid content received from server (" + ex.getMessage() + ")", ex); } }