Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
DataTypeException |
|
| 1.0;1 |
1 | /** | |
2 | The contents of this file are subject to the Mozilla Public License Version 1.1 | |
3 | (the "License"); you may not use this file except in compliance with the License. | |
4 | You may obtain a copy of the License at http://www.mozilla.org/MPL/ | |
5 | Software distributed under the License is distributed on an "AS IS" basis, | |
6 | WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the | |
7 | specific language governing rights and limitations under the License. | |
8 | ||
9 | The Original Code is "DataTypeException.java". Description: | |
10 | "Represents a problem with the validity of a data type, such as an attempt | |
11 | to set the value of a primitive type to something invalid for that type" | |
12 | ||
13 | The Initial Developer of the Original Code is University Health Network. Copyright (C) | |
14 | 2001. All Rights Reserved. | |
15 | ||
16 | Contributor(s): ______________________________________. | |
17 | ||
18 | Alternatively, the contents of this file may be used under the terms of the | |
19 | GNU General Public License (the "GPL"), in which case the provisions of the GPL are | |
20 | applicable instead of those above. If you wish to allow use of your version of this | |
21 | file only under the terms of the GPL and not to allow others to use your version | |
22 | of this file under the MPL, indicate your decision by deleting the provisions above | |
23 | and replace them with the notice and other provisions required by the GPL License. | |
24 | If you do not delete the provisions above, a recipient may use your version of | |
25 | this file under either the MPL or the GPL. | |
26 | ||
27 | */ | |
28 | ||
29 | package ca.uhn.hl7v2.model; | |
30 | ||
31 | import ca.uhn.hl7v2.ErrorCode; | |
32 | import ca.uhn.hl7v2.HL7Exception; | |
33 | ||
34 | /** | |
35 | * Represents a problem with the validity of a data type, such as an attempt | |
36 | * to set the value of a primitive type to something invalid for that type. | |
37 | * @author Bryan Tripp (bryan_tripp@sourceforge.net) | |
38 | */ | |
39 | @SuppressWarnings("serial") | |
40 | public class DataTypeException extends HL7Exception { | |
41 | ||
42 | ||
43 | /** | |
44 | * @param message | |
45 | * @param errorCondition | |
46 | * @param cause | |
47 | * @deprecated | |
48 | */ | |
49 | public DataTypeException(String message, int errorCondition, Throwable cause) { | |
50 | 0 | super(message, errorCondition, cause); |
51 | 0 | } |
52 | ||
53 | public DataTypeException(String message, ErrorCode error, Throwable cause) { | |
54 | 0 | super(message, error, cause); |
55 | 0 | } |
56 | ||
57 | /** | |
58 | * @param message | |
59 | * @param errorCondition | |
60 | * @deprecated | |
61 | */ | |
62 | public DataTypeException(String message, int errorCondition) { | |
63 | 0 | super(message, errorCondition); |
64 | 0 | } |
65 | ||
66 | public DataTypeException(String message, ErrorCode error) { | |
67 | 0 | super(message, error); |
68 | 0 | } |
69 | ||
70 | public DataTypeException(String message, Throwable cause) { | |
71 | 0 | super(message, cause); |
72 | 0 | } |
73 | ||
74 | public DataTypeException( Throwable cause ) { | |
75 | 760 | super(cause); |
76 | 760 | } |
77 | ||
78 | public DataTypeException(String message) { | |
79 | 705 | super(message); |
80 | 705 | } |
81 | ||
82 | } |