public class MockitoException extends RuntimeException
The stack trace is filtered from mockito calls if you are using Throwable.getStackTrace()
.
For debugging purpose though you can still access the full stacktrace using getUnfilteredStackTrace()
.
However note that other calls related to the stackTrace will refer to the filter stacktrace.
Advanced users and framework integrators can control stack trace filtering behavior
via StackTraceCleanerProvider
classpath plugin.
Constructor and Description |
---|
MockitoException(String message) |
MockitoException(String message,
Throwable t) |
Modifier and Type | Method and Description |
---|---|
StackTraceElement[] |
getUnfilteredStackTrace() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MockitoException(String message)
public StackTraceElement[] getUnfilteredStackTrace()