net.sourceforge.pmd
Class PMDException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.sourceforge.pmd.PMDException
- All Implemented Interfaces:
- java.io.Serializable
public class PMDException
- extends java.lang.Exception
A convenience exception wrapper. Contains the original exception, if any. Also, contains
a severity number (int). Zero implies no severity. The higher the number the greater the
severity.
- Since:
- August 30, 2002
- Version:
- $Revision: 4217 $, $Date: 2006-02-10 15:15:31 +0100 (Fri, 10 Feb 2006) $
- Author:
- Donald A. Leckie
- See Also:
- Serialized Form
Constructor Summary |
PMDException(java.lang.String message)
|
PMDException(java.lang.String message,
java.lang.Exception reason)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PMDException
public PMDException(java.lang.String message)
PMDException
public PMDException(java.lang.String message,
java.lang.Exception reason)
printStackTrace
public void printStackTrace()
- Overrides:
printStackTrace
in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintStream s)
- Overrides:
printStackTrace
in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintWriter s)
- Overrides:
printStackTrace
in class java.lang.Throwable
getReason
public java.lang.Exception getReason()
setSeverity
public void setSeverity(int severity)
getSeverity
public int getSeverity()