Class PmdXPathException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.commons.lang3.exception.ContextedRuntimeException
-
- net.sourceforge.pmd.lang.rule.xpath.PmdXPathException
-
- All Implemented Interfaces:
Serializable
,org.apache.commons.lang3.exception.ExceptionContext
public class PmdXPathException extends org.apache.commons.lang3.exception.ContextedRuntimeException
Unchecked exception wrapper forXPathException
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PmdXPathException.Phase
-
Constructor Summary
Constructors Constructor Description PmdXPathException(net.sf.saxon.trans.XPathException e, PmdXPathException.Phase phase, String expression, XPathVersion version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PmdXPathException
addRuleName(String ruleName)
PmdXPathException.Phase
getPhase()
@Nullable String
getRuleName()
-
Methods inherited from class org.apache.commons.lang3.exception.ContextedRuntimeException
addContextValue, getContextEntries, getContextLabels, getContextValues, getFirstContextValue, getFormattedExceptionMessage, getMessage, getRawMessage, setContextValue
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
PmdXPathException
public PmdXPathException(net.sf.saxon.trans.XPathException e, PmdXPathException.Phase phase, String expression, XPathVersion version)
-
-
Method Detail
-
getPhase
public PmdXPathException.Phase getPhase()
-
addRuleName
public PmdXPathException addRuleName(String ruleName)
-
getRuleName
public @Nullable String getRuleName()
-
-