1 package com.bm.ejb3metadata.annotations.exceptions; 2 3 /** 4 * Exception thrown if there is a failure in an interceptor. 5 * 6 * @author Daniel Wiese 7 */ 8 public class InterceptorsValidationException extends RuntimeException { 9 10 /** 11 * Id for serializable class. 12 */ 13 private static final long serialVersionUID = 7120095024216898241L; 14 15 /** 16 * Constructs a new runtime exception with <code>null</code> as its detail 17 * message. The cause is not initialized, and may subsequently be 18 * initialized by a call to {@link #initCause}. 19 */ 20 public InterceptorsValidationException() { 21 super(); 22 } 23 24 /** 25 * Constructs a new runtime exception with the specified detail message. The 26 * cause is not initialized, and may subsequently be initialized by a call 27 * to {@link #initCause}. 28 * 29 * @param message 30 * the detail message. The detail message is saved for later 31 * retrieval by the {@link #getMessage()} method. 32 */ 33 public InterceptorsValidationException(final String message) { 34 super(message); 35 } 36 37 /** 38 * Constructs a new runtime exception with the specified detail message and 39 * cause. 40 * <p> 41 * Note that the detail message associated with <code>cause</code> is 42 * <i>not</i> automatically incorporated in this runtime exception's detail 43 * message. 44 * 45 * @param message 46 * the detail message (which is saved for later retrieval by the 47 * {@link #getMessage()} method). 48 * @param cause 49 * the cause (which is saved for later retrieval by the 50 * {@link #getCause()} method). (A <tt>null</tt> value is 51 * permitted, and indicates that the cause is nonexistent or 52 * unknown.) 53 */ 54 public InterceptorsValidationException(final String message, 55 final Throwable cause) { 56 super(message, cause); 57 } 58 59 }