Source code for /engineering/autohit-2003/src/autohit/system/tellio/TellException.javaOriginal file TellException.java
   1 /**
   2  * AUTOHIT 2003
   3  * Copyright Erich P Gatejen (c) 1989,1997,2003,2004
   4  * 
   5  * This program is free software; you can redistribute it and/or modify 
   6  * it under the terms of the GNU General Public License as published by 
   7  * the Free Software Foundation; either version 2 of the License, or (at
   8  * your option) any later version.
   9  * This program is distributed in the hope that it will be useful, but
  10  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12  * more details.
  13  * 
  14  * You should have received a copy of the GNU General Public License along
  15  * with this program; if not, write to the Free Software Foundation, Inc.,
  16  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17  *
  18  * Additional license information can be found in the documentation.
  19  * @author Erich P Gatejen
  20  */
  21 
  22 package autohit.system.tellio;
  23 
  24 import autohit.common.AutohitException;
  25 
  26 /**
  27  * A n exception.  The specific error is given in the numeric
  28  * field.  
  29  *
  30  * @author Erich P. Gatejen
  31  * @version 1.0
  32  * <i>Version History</i>
  33  * <code>EPG - Initial - 4Jan03</code> 
  34  * 
  35  */
  36 public class TellException extends AutohitException {
  37 
  38 	final static long serialVersionUID = 1;
  39 	
  40 	/**
  41 	 *  Numeric values for the exception.
  42 	 */
  43 
  44 	/**
  45 	 *  Default Constructor.
  46 	 */
  47 	public TellException() {
  48 		super("Generic TellException", CODE_SYSTEM_GENERIC_ERROR);
  49 	}
  50 
  51 	/**
  52 	 *  Message constructor
  53 	 * @param message text message for exception
  54 	 */
  55 	public TellException(String message) {
  56 		super(message, CODE_SYSTEM_GENERIC_ERROR);
  57 	}
  58 
  59 	/**
  60 	 *  Message constructor
  61 	 * @param n numeric error
  62 	 */
  63 	public TellException(int n) {
  64 		super("Generic TellException", n);
  65 	}
  66 
  67 	/**
  68 	 *  Message constructor
  69 	 * @param message text message for exception
  70 	 * @param n numeric error
  71 	 */
  72 	public TellException(String message, int n) {
  73 		super(message, n);
  74 	}
  75 
  76 	/**
  77 	 *  Message constructor with cause
  78 	 * @param message text message for exception
  79 	 * @param theCause for exception chaining
  80 	 */
  81 	public TellException(String message, Throwable theCause) {
  82 		super(message, CODE_SYSTEM_GENERIC_ERROR);
  83 	}
  84 
  85 	/**
  86 	 *  Message constructor with cause
  87 	 * @param n numeric error
  88 	 * @param theCause for exception chaining
  89 	 */
  90 	public TellException(int n, Throwable theCause) {
  91 		super("Generic TellException", n);
  92 	}
  93 
  94 	/**
  95 	 *  Message constructor with cause
  96 	 * @param message text message for exception
  97 	 * @param n numeric error
  98 	 * @param theCause for exception chaining
  99 	 */
 100 	public TellException(String message, int n, Throwable theCause) {
 101 		super(message, n, theCause);
 102 		numeric = n;
 103 	}
 104 }