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    @SuppressWarnings("serial")
039    public 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    }