1 /******************************************************************************* 2 * Copyright (c) 2005, 2006, 2007 Imola Informatica. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the LGPL License v2.1 5 * which accompanies this distribution, and is available at 6 * http://www.gnu.org/licenses/lgpl.html 7 *******************************************************************************/ 8 package it.imolinfo.jbi4ejb.exception; 9 10 /** 11 * The exception used when there is an error during the class generation phase. 12 */ 13 public class ClassGenerationException extends Jbi4EjbException { 14 15 /** 16 * Serial Version UID. 17 */ 18 private static final long serialVersionUID = -9052085981255532462L; 19 20 /** 21 * A constructor. 22 * 23 * @param message 24 * The message of the exception. 25 */ 26 public ClassGenerationException(final String message) { 27 super(message); 28 } 29 30 /** 31 * A constructor. 32 * 33 * @param message 34 * The message of the exception. 35 * @param cause 36 * The cause of the exception. 37 */ 38 public ClassGenerationException(final String message, final Throwable cause) { 39 super(message, cause); 40 } 41 42 /** 43 * A constructor. 44 * 45 * @param cause 46 * The cause of the exception. 47 */ 48 public ClassGenerationException(final Throwable cause) { 49 super(cause); 50 } 51 52 /** 53 * Instantiates a new class generation exception. 54 * 55 * @param format 56 * The format of the message 57 * @param args 58 * The args for the format 59 * @param cause 60 * The cause 61 */ 62 public ClassGenerationException(final String format, final Object[] args, 63 final Throwable cause) { 64 super(format, args, cause); 65 } 66 67 /** 68 * Instantiates a new class generation exception. 69 * 70 * @param format 71 * The format of the message 72 * @param args 73 * The args for the format 74 */ 75 public ClassGenerationException(final String format, final Object[] args) { 76 super(format, args); 77 } 78 }