net.sourceforge.pmd
Class PMDException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.sourceforge.pmd.PMDException
- All Implemented Interfaces:
- Serializable
public class PMDException
- extends 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$, $Date$
- Author:
- Donald A. Leckie
- See Also:
- Serialized Form
Constructor Summary |
PMDException(String message)
Creates a new PMD exception with the specified message. |
PMDException(String message,
Exception reason)
Creates a new PMD exception with the specified message and the given reason as root cause. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
PMDException
public PMDException(String message)
- Creates a new PMD exception with the specified message.
- Parameters:
message
- the message
PMDException
public PMDException(String message,
Exception reason)
- Creates a new PMD exception with the specified message and the given reason as root cause.
- Parameters:
message
- the messagereason
- the root cause
setSeverity
public void setSeverity(int severity)
getSeverity
public int getSeverity()
Copyright © 2002-2016 InfoEther. All Rights Reserved.