Package org.mockito.exceptions.base
Class MockitoException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mockito.exceptions.base.MockitoException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CannotStubVoidMethodWithReturnValue
,CannotVerifyStubOnlyMock
,FriendlyReminderException
,InstantationException
,InvalidUseOfMatchersException
,MissingMethodInvocationException
,MockitoConfigurationException
,NotAMockException
,NullInsteadOfMockException
,SmartNullPointerException
,UnfinishedStubbingException
,UnfinishedVerificationException
,WrongTypeOfReturnValue
Raised by mockito to emit an error either due to Mockito, or due to the User.
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.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMockitoException
(String message) MockitoException
(String message, Throwable t) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MockitoException
-
MockitoException
-
-
Method Details
-
getUnfilteredStackTrace
-