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>
An
AssertionError with nice messages.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.lang3.exception.DefaultExceptionContextstatic ContextedAssertionErrorMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sourceforge.pmd.internal.util.ExceptionContextDefaultImpl
addContextValue, getContextEntries, getContextLabels, getContextValues, getFirstContextValue, getFormattedExceptionMessage, setContextValue
-
Method Details
-
wrap
-
getMessage
- Overrides:
getMessagein classThrowable
-
getExceptionContext
public org.apache.commons.lang3.exception.DefaultExceptionContext getExceptionContext()- Specified by:
getExceptionContextin interfacenet.sourceforge.pmd.internal.util.ExceptionContextDefaultImpl<ContextedAssertionError>
-
getThrowable
- Specified by:
getThrowablein interfacenet.sourceforge.pmd.internal.util.ExceptionContextDefaultImpl<ContextedAssertionError>
-