MockitoException
Date: 2015-09-18

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:
    java.io.Serializable
  Direct Known Subclasses:
    CannotStubVoidMethodWithReturnValue, CannotVerifyStubOnlyMock, FriendlyReminderException, InstantationException, InvalidUseOfMatchersException, MissingMethodInvocationException, MockitoConfigurationException, NotAMockException, NullInsteadOfMockException, SmartNullPointerException, UnfinishedStubbingException, UnfinishedVerificationException, WrongTypeOfReturnValue

      public class MockitoException
      extends java.lang.RuntimeException

  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:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MockitoException(java.lang.String message)`
    `MockitoException(java.lang.String message, java.lang.Throwable t)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.StackTraceElement[]` | `getUnfilteredStackTrace()`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### MockitoException

          public MockitoException(java.lang.String message,
                          java.lang.Throwable t)

    - #### MockitoException

          public MockitoException(java.lang.String message)

  - ### Method Detail

    - #### getUnfilteredStackTrace

          public java.lang.StackTraceElement[] getUnfilteredStackTrace()