Example usage for java.lang AssertionError AssertionError

List of usage examples for java.lang AssertionError AssertionError

Introduction

In this page you can find the example usage for java.lang AssertionError AssertionError.

Prototype

public AssertionError(String message, Throwable cause) 

Source Link

Document

Constructs a new AssertionError with the specified detail message and cause.

Usage

From source file:com.payu.ratel.server.InMemoryDiscoveryServer.java

@Override
@PUT/*from w w  w.j  ava2s . com*/
@Consumes("application/json")
@Path("/service/{service}")
public void collectStatistics(@PathParam("service") String address,
        Map<String, Map<String, String>> statistics) {
    try {
        statisticsHolder.putStatistics(URLDecoder.decode(address, "UTF-8"), statistics);
    } catch (UnsupportedEncodingException e) {
        throw new AssertionError("UTF-8 must be supported", e);
    }
}