@Test public void testGetCauseReturnsBaseException() { Exception exception = new Exception("SomeExceptionMessage"); LoaderException loaderException = new LoaderException(exception, null, null); Exception cause = loaderException.getCause(); assertThat(cause, is(exception)); }
@Override public synchronized Exception getCause() { return (Exception)super.getCause(); }
LoaderException extends Exception { @Override public synchronized Exception getCause() { return (Exception)super.getCause(); } }
LoaderException extends Exception { @Override public synchronized Exception getCause() { return (Exception)super.getCause(); } LoaderException(Exception base, Loader loader, String sourceDescription); }
LoaderException extends Exception { @Override public synchronized Exception getCause() { return (Exception)super.getCause(); } LoaderException(Exception base, Loader loader, String sourceDescription); @Override synchronized Exception getCause(); @Override String getMessage(); }
LoaderException extends Exception { @Override public synchronized Exception getCause() { return (Exception)super.getCause(); } LoaderException(Exception base, Loader loader, String sourceDescription); @Override synchronized Exception getCause(); @Override String getMessage();  }