1 /* 2 * Copyright (C) 2014 Sven von Pluto - javanarior (a) gmail dot com 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package de.javanarior.utils.lang.reflect; 17 18 /** 19 * Indicates a error when working with Reflections. 20 */ 21 public class ReflectionException extends RuntimeException { 22 23 private static final long serialVersionUID = 7561200076222225501L; 24 25 /** 26 * Indicates a error when working with Reflections. 27 */ 28 public ReflectionException() { 29 super(); 30 } 31 32 /** 33 * Indicates a error when working with Reflections. 34 * 35 * @param message 36 * - some hints of the cause or tips to handle 37 */ 38 public ReflectionException(String message) { 39 super(message); 40 } 41 42 /** 43 * Indicates a error when working with Reflections. 44 * 45 * @param cause 46 * - the root cause of this error 47 */ 48 public ReflectionException(Throwable cause) { 49 super(cause); 50 } 51 52 /** 53 * Indicates a error when working with Reflections. 54 * 55 * @param message 56 * - some hints of the cause or tips to handle 57 * @param cause 58 * - the root cause of this error 59 */ 60 public ReflectionException(String message, Throwable cause) { 61 super(message, cause); 62 } 63 64 /** 65 * Indicates a error when working with Reflections. 66 * 67 * @param message 68 * - some hints of the cause or tips to handle 69 * @param cause 70 * - the root cause of this error 71 * @param enableSuppression 72 * - enable suppression 73 * @param writableStackTrace 74 * - writable stack trace 75 */ 76 public ReflectionException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { 77 super(message, cause, enableSuppression, writableStackTrace); 78 } 79 80 }