001 /** 002 The contents of this file are subject to the Mozilla Public License Version 1.1 003 (the "License"); you may not use this file except in compliance with the License. 004 You may obtain a copy of the License at http://www.mozilla.org/MPL/ 005 Software distributed under the License is distributed on an "AS IS" basis, 006 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 007 specific language governing rights and limitations under the License. 008 009 The Original Code is "DataTypeException.java". Description: 010 "Represents a problem with the validity of a data type, such as an attempt 011 to set the value of a primitive type to something invalid for that type" 012 013 The Initial Developer of the Original Code is University Health Network. Copyright (C) 014 2001. All Rights Reserved. 015 016 Contributor(s): ______________________________________. 017 018 Alternatively, the contents of this file may be used under the terms of the 019 GNU General Public License (the ?GPL?), in which case the provisions of the GPL are 020 applicable instead of those above. If you wish to allow use of your version of this 021 file only under the terms of the GPL and not to allow others to use your version 022 of this file under the MPL, indicate your decision by deleting the provisions above 023 and replace them with the notice and other provisions required by the GPL License. 024 If you do not delete the provisions above, a recipient may use your version of 025 this file under either the MPL or the GPL. 026 027 */ 028 029 package ca.uhn.hl7v2.model; 030 031 import ca.uhn.hl7v2.HL7Exception; 032 033 /** 034 * Represents a problem with the validity of a data type, such as an attempt 035 * to set the value of a primitive type to something invalid for that type. 036 * @author Bryan Tripp (bryan_tripp@sourceforge.net) 037 */ 038 public class DataTypeException extends HL7Exception { 039 040 041 /** 042 * @param message 043 * @param errorCondition 044 * @param cause 045 */ 046 public DataTypeException(String message, int errorCondition, Throwable cause) { 047 super(message, errorCondition, cause); 048 } 049 050 /** 051 * @param message 052 * @param errorCondition 053 */ 054 public DataTypeException(String message, int errorCondition) { 055 super(message, errorCondition); 056 } 057 058 /** 059 * @param message 060 * @param cause 061 */ 062 public DataTypeException(String message, Throwable cause) { 063 super(message, cause); 064 } 065 066 /** 067 * @param message 068 * @param cause 069 */ 070 public DataTypeException( Throwable cause ) { 071 super(cause); 072 } 073 074 075 /** 076 * @param message 077 */ 078 public DataTypeException(String message) { 079 super(message); 080 } 081 082 }