Example usage for org.springframework.boot.cli.command.init ReportableException ReportableException

List of usage examples for org.springframework.boot.cli.command.init ReportableException ReportableException

Introduction

In this page you can find the example usage for org.springframework.boot.cli.command.init ReportableException ReportableException.

Prototype

public ReportableException(String message, Throwable cause) 

Source Link

Usage

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);
    }
}