Class PmdError.OfProcessingError

  • All Implemented Interfaces:
    PmdError
    Enclosing interface:
    PmdError

    public static final class PmdError.OfProcessingError
    extends Object
    implements PmdError
    PmdError backed by a ProcessingError.
    Since:
    1.0
    • Constructor Detail

      • OfProcessingError

        public OfProcessingError​(net.sourceforge.pmd.Report.ProcessingError error)
        Creates a new PmdError, representing given ProcessingError.
        Parameters:
        error - Internal ProcessingError.
    • Method Detail

      • name

        public String name()
        Description copied from interface: PmdError
        Returns error name which is short, fixed, human-readable category of the error.
        Specified by:
        name in interface PmdError
        Returns:
        Error name.
      • fileName

        public String fileName()
        Description copied from interface: PmdError
        Returns file name which caused this error. May return sentinel value if file information is not available.
        Specified by:
        fileName in interface PmdError
        Returns:
        File name.
      • lines

        public String lines()
        Description copied from interface: PmdError
        Returns formatted line range which cause this error. May return sentinel value if line information is not available.
        Specified by:
        lines in interface PmdError
        Returns:
        Formatted line range.
      • description

        public String description()
        Description copied from interface: PmdError
        Returns error description.
        Specified by:
        description in interface PmdError
        Returns:
        Description.