Package net.sourceforge.pmd.util
Class ContextedAssertionError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- java.lang.AssertionError
-
- net.sourceforge.pmd.util.ContextedAssertionError
-
- All Implemented Interfaces:
Serializable
,ExceptionContextDefaultImpl<ContextedAssertionError>
,org.apache.commons.lang3.exception.ExceptionContext
public final class ContextedAssertionError extends AssertionError implements ExceptionContextDefaultImpl<ContextedAssertionError>
AnAssertionError
with nice messages.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.lang3.exception.DefaultExceptionContext
getExceptionContext()
String
getMessage()
ContextedAssertionError
getThrowable()
static ContextedAssertionError
wrap(AssertionError e)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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
-
Methods inherited from interface net.sourceforge.pmd.internal.util.ExceptionContextDefaultImpl
addContextValue, getContextEntries, getContextLabels, getContextValues, getFirstContextValue, getFormattedExceptionMessage, setContextValue
-
-
-
-
Method Detail
-
wrap
public static ContextedAssertionError wrap(AssertionError e)
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getExceptionContext
public org.apache.commons.lang3.exception.DefaultExceptionContext getExceptionContext()
- Specified by:
getExceptionContext
in interfaceExceptionContextDefaultImpl<ContextedAssertionError>
-
getThrowable
public ContextedAssertionError getThrowable()
- Specified by:
getThrowable
in interfaceExceptionContextDefaultImpl<ContextedAssertionError>
-
-