@SuppressWarnings("deprecation") @Test public void testGetReason() { final Exception reason = new Exception(); final PMDException exception = new PMDException( "message", reason ); assertEquals( reason, exception.getReason() ); }
@Deprecated public Exception getReason() { return ( Exception ) getCause(); }
PMDException extends Exception { @Deprecated public Exception getReason() { return ( Exception ) getCause(); } }
PMDException extends Exception { @Deprecated public Exception getReason() { return ( Exception ) getCause(); } PMDException( final String message );  PMDException( final String message,
                        final Exception reason ); }
PMDException extends Exception { @Deprecated public Exception getReason() { return ( Exception ) getCause(); } PMDException( final String message );  PMDException( final String message,
                        final Exception reason ); @Deprecated Exception getReason(); int getSeverity(); void setSeverity( final int severityToBeSet ); }
PMDException extends Exception { @Deprecated public Exception getReason() { return ( Exception ) getCause(); } PMDException( final String message );  PMDException( final String message,
                        final Exception reason ); @Deprecated Exception getReason(); int getSeverity(); void setSeverity( final int severityToBeSet );  }