View Javadoc
1   package org.bitbucket.jrsofty.parser.logging.api;
2   
3   /**
4    * This class is thrown when an exception happens while attempting to make an instance of the class
5    * and an exception is thrown.
6    *
7    * @author jrsofty
8    *
9    */
10  public class IllegalClassException extends Exception {
11  
12    private static final long serialVersionUID = -6836983566924418028L;
13  
14    public IllegalClassException() {
15      super("The passed value is not valid and is most likely null");
16    }
17  
18    public IllegalClassException(final Class<?> clazz, final Throwable t) {
19      super("The class " + clazz.getName() + " could not be accessed by reflection.", t);
20    }
21  
22    public IllegalClassException(final Class<?> clazz, final String message) {
23      super("The class " + clazz.getName() + " failed because " + message);
24    }
25  
26  }