public class RedundantListenerException extends MockitoException
MockitoListener
is being added to Mockito (see MockitoFramework)
and there is already a listener with this implementation type registered.
Note that it is ok to add multiple different implementations of the same listener interface type.
Indicates a user error - previous listener was not removed
according to the API specification - see MockitoFramework.addListener(MockitoListener).
| Constructor and Description |
|---|
RedundantListenerException(String message) |
getUnfilteredStackTraceaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RedundantListenerException(String message)