org.mockito.exceptions.base
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.
| Constructor and Description |
|---|
MockitoException(String message) |
MockitoException(String message,
Throwable t) |
| Modifier and Type | Method and Description |
|---|---|
StackTraceElement[] |
getUnfilteredStackTrace() |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MockitoException(String message)
public StackTraceElement[] getUnfilteredStackTrace()