Class 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$, $Date$
    Author:
    Donald A. Leckie
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PMDException​(java.lang.String message)
      Creates a new PMD exception with the specified message.
      PMDException​(java.lang.String message, java.lang.Exception reason)
      Creates a new PMD exception with the specified message and the given reason as root cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getSeverity()  
      void setSeverity​(int severity)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PMDException

        public PMDException​(java.lang.String message)
        Creates a new PMD exception with the specified message.
        Parameters:
        message - the message
      • PMDException

        public PMDException​(java.lang.String message,
                            java.lang.Exception reason)
        Creates a new PMD exception with the specified message and the given reason as root cause.
        Parameters:
        message - the message
        reason - the root cause
    • Method Detail

      • setSeverity

        public void setSeverity​(int severity)
      • getSeverity

        public int getSeverity()