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
,net.sourceforge.pmd.internal.util.ExceptionContextDefaultImpl<ContextedAssertionError>
,org.apache.commons.lang3.exception.ExceptionContext
public final class ContextedAssertionError extends AssertionError implements net.sourceforge.pmd.internal.util.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
-
-
-
-
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 interfacenet.sourceforge.pmd.internal.util.ExceptionContextDefaultImpl<ContextedAssertionError>
-
getThrowable
public ContextedAssertionError getThrowable()
- Specified by:
getThrowable
in interfacenet.sourceforge.pmd.internal.util.ExceptionContextDefaultImpl<ContextedAssertionError>
-
-