Example usage for javax.json JsonException JsonException

List of usage examples for javax.json JsonException JsonException

Introduction

In this page you can find the example usage for javax.json JsonException JsonException.

Prototype

public JsonException(String message) 

Source Link

Document

Constructs a new runtime exception with the specified detail message.

Usage

From source file:org.jboss.set.aphrodite.JsonStreamService.java

private URL parseUrl(String url) {
    try {//from  w  w w.j  a v a  2s . c om
        return new URL(url);
    } catch (MalformedURLException e) {
        throw new JsonException("Unable to parse url: " + e.getMessage());
    }
}