001/** 002The 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. 004You may obtain a copy of the License at http://www.mozilla.org/MPL/ 005Software distributed under the License is distributed on an "AS IS" basis, 006WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 007specific language governing rights and limitations under the License. 008 009The 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 013The Initial Developer of the Original Code is University Health Network. Copyright (C) 0142001. All Rights Reserved. 015 016Contributor(s): ______________________________________. 017 018Alternatively, the contents of this file may be used under the terms of the 019GNU General Public License (the "GPL"), in which case the provisions of the GPL are 020applicable instead of those above. If you wish to allow use of your version of this 021file only under the terms of the GPL and not to allow others to use your version 022of this file under the MPL, indicate your decision by deleting the provisions above 023and replace them with the notice and other provisions required by the GPL License. 024If you do not delete the provisions above, a recipient may use your version of 025this file under either the MPL or the GPL. 026 027*/ 028 029package ca.uhn.hl7v2.model; 030 031import 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@SuppressWarnings("serial") 039public class DataTypeException extends HL7Exception { 040 041 042 /** 043 * @param message 044 * @param errorCondition 045 * @param cause 046 */ 047 public DataTypeException(String message, int errorCondition, Throwable cause) { 048 super(message, errorCondition, cause); 049 } 050 051 /** 052 * @param message 053 * @param errorCondition 054 */ 055 public DataTypeException(String message, int errorCondition) { 056 super(message, errorCondition); 057 } 058 059 /** 060 * @param message 061 * @param cause 062 */ 063 public DataTypeException(String message, Throwable cause) { 064 super(message, cause); 065 } 066 067 /** 068 * @param message 069 * @param cause 070 */ 071 public DataTypeException( Throwable cause ) { 072 super(cause); 073 } 074 075 076 /** 077 * @param message 078 */ 079 public DataTypeException(String message) { 080 super(message); 081 } 082 083}