1 /* 2 * Copyright 2010 :torweg free software group 3 * 4 * This program is free software: you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation, either version 3 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * 17 */ 18 package org.torweg.pulse.annotations; 19 20 import org.torweg.pulse.service.PulseException; 21 22 /** 23 * superclass for exceptions related to <em>pulse</em> annotations. 24 * 25 * @author Thomas Weber 26 * @version $Revision: 1381 $ 27 */ 28 public class AnnotationException extends PulseException { 29 30 /** 31 * serialVersionUID. 32 */ 33 private static final long serialVersionUID = -2238897765209127009L; 34 35 /** 36 * constructs a new exception with {@code null} as its detail message. 37 */ 38 public AnnotationException() { 39 super(); 40 } 41 42 /** 43 * constructs a new exception with the specified detail message. 44 * 45 * @param message 46 * the message of the exception 47 */ 48 public AnnotationException(final String message) { 49 super(message); 50 } 51 52 /** 53 * constructs a new exception with the specified detail message and cause. 54 * 55 * @param message 56 * the message of the exception 57 * @param cause 58 * the cause of the exception 59 */ 60 public AnnotationException(final String message, final Throwable cause) { 61 super(message, cause); 62 } 63 64 /** 65 * constructs a new exception with the specified cause. 66 * 67 * @param cause 68 * the cause of the exception 69 */ 70 public AnnotationException(final Throwable cause) { 71 super(cause); 72 } 73 74 } 75