1 package net.trajano.twiff; 2 3 /*** 4 * Superclass of all exceptions in the Twiff framework. 5 * 6 * @author Archimedes Trajano 7 */ 8 public class TwiffException extends RuntimeException { 9 /*** 10 * Construct a new exception with no cause and no detail message. 11 */ 12 public TwiffException() { 13 super(); 14 } 15 16 /*** 17 * Construct a new exception with no cause and the specified detail message. 18 * 19 * @param message 20 * the message detailing the exception 21 */ 22 public TwiffException(final String message) { 23 super(message); 24 } 25 26 /*** 27 * Construct a new exception with the specified cause and the specified 28 * detail message. 29 * 30 * @param message 31 * the message detailing the exception 32 * @param cause 33 * the exception that caused this one 34 */ 35 public TwiffException(final String message, final Throwable cause) { 36 super(message, cause); 37 } 38 39 /*** 40 * Construct a new exception with the specified cause and no detail message. 41 * 42 * @param cause 43 * the exception that caused this one. 44 */ 45 public TwiffException(final Throwable cause) { 46 super(cause); 47 } 48 }