Package org.mockito.exceptions.base
Class MockitoSerializationIssue
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- java.io.ObjectStreamException
-
- org.mockito.exceptions.base.MockitoSerializationIssue
-
- All Implemented Interfaces:
java.io.Serializable
public class MockitoSerializationIssue extends java.io.ObjectStreamException
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 usinggetUnfilteredStackTrace()
. However note that other calls related to the stackTrace will refer to the filter stacktrace.- Since:
- 1.10.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StackTraceElement[]
unfilteredStackTrace
-
Constructor Summary
Constructors Constructor Description MockitoSerializationIssue(java.lang.String message, java.lang.Exception cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
filterStackTrace()
java.lang.StackTraceElement[]
getUnfilteredStackTrace()
-