aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/geb/exceptions/MissingInterfaceException.java
blob: e792729256d6a2a543ba2fe613dec9f65eebfde1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package ftbsc.geb.exceptions;

/**
 * Thrown when a parent of a listener method does not implement the
 * appropriate interface,
 */
public class MissingInterfaceException extends RuntimeException {

   /**
    * The public constructor.
    * @param clazz the fully-qualified name of the parent class
    * @param method the annotated listener method
    */
   public MissingInterfaceException(String clazz, String method) {
      super(String.format("The parent of %s::%s does not implement the IListener interface!", clazz, method));
   }
}