@Test public final void requireNoMessageIsOK() { final Throwable t = new Throwable(); final ExceptionWrapper e = new ExceptionWrapper(t); final String expected = "Throwable() at com.yahoo.jdisc.http.server.jetty.ExceptionWrapperTest(ExceptionWrapperTest.java:19)"; assertThat(e.getMessage(), equalTo(expected)); }
@Override public String getMessage() { return message; }
ExceptionWrapper extends RuntimeException { @Override public String getMessage() { return message; } }
ExceptionWrapper extends RuntimeException { @Override public String getMessage() { return message; } ExceptionWrapper(Throwable t); }
ExceptionWrapper extends RuntimeException { @Override public String getMessage() { return message; } ExceptionWrapper(Throwable t); @Override String getMessage(); }
ExceptionWrapper extends RuntimeException { @Override public String getMessage() { return message; } ExceptionWrapper(Throwable t); @Override String getMessage();  }