Home | History | Annotate | Download | only in misusing
      1 /*
      2  * Copyright (c) 2017 Mockito contributors
      3  * This program is made available under the terms of the MIT License.
      4  */
      5 package org.mockito.exceptions.misusing;
      6 
      7 import org.mockito.exceptions.base.MockitoException;
      8 import org.mockito.listeners.MockitoListener;
      9 
     10 /**
     11  * Reported when instance of {@link org.mockito.listeners.MockitoListener}
     12  * is being added to Mockito (see {@link org.mockito.MockitoFramework})
     13  * and there is already a listener with this implementation type registered.
     14  * Note that it is ok to add multiple <strong>different</strong> implementations of the same listener interface type.
     15  * <p>
     16  * Indicates a user error - previous listener was not removed
     17  * according to the API specification - see {@link org.mockito.MockitoFramework#addListener(MockitoListener)}.
     18  *
     19  * @since 2.5.2
     20  */
     21 public class RedundantListenerException extends MockitoException {
     22     public RedundantListenerException(String message) {
     23         super(message);
     24     }
     25 }
     26