01: /*
02: * MCS Media Computer Software Copyright (c) 2006 by MCS
03: * -------------------------------------- Created on 04.08.2006 by w.klaas
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
06: * use this file except in compliance with the License. You may obtain a copy of
07: * the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14: * License for the specific language governing permissions and limitations under
15: * the License.
16: */
17: /**
18: *
19: */package de.mcs.jmeasurement;
20:
21: /**
22: * + This exception is thrown, if the measure data was called via getAs#### but
23: * the type was not convertible to ####.
24: *
25: * @author w.klaas
26: *
27: */
28: public class InvalidMeasureDataTypeException extends Exception {
29:
30: /**
31: *
32: */
33: private static final long serialVersionUID = -1685928592376615195L;
34:
35: /**
36: * @see java.lang.Exception#Exception()
37: */
38: public InvalidMeasureDataTypeException() {
39: super ();
40: }
41:
42: /**
43: * Constructs a new exception with the specified detail message. The cause
44: * is not initialized, and may subsequently be initialized by a call to
45: * {@link #initCause}.
46: *
47: * @param message
48: * the detail message. The detail message is saved for later
49: * retrieval by the {@link #getMessage()} method.
50: * @see java.lang.Exception#Exception(java.lang.String)
51: */
52: public InvalidMeasureDataTypeException(final String message) {
53: super (message);
54: }
55:
56: /**
57: * Constructs a new exception with the specified cause and a detail message
58: * of <tt>(cause==null ? null : cause.toString())</tt> (which typically
59: * contains the class and detail message of <tt>cause</tt>). This
60: * constructor is useful for exceptions that are little more than wrappers
61: * for other throwables (for example, {@link
62: * java.security.PrivilegedActionException}).
63: *
64: * @param cause
65: * the cause (which is saved for later retrieval by the
66: * {@link #getCause()} method). (A <tt>null</tt> value is
67: * permitted, and indicates that the cause is nonexistent or
68: * unknown.)
69: * @see java.lang.Exception#Exception(java.lang.Throwable)
70: */
71: public InvalidMeasureDataTypeException(final Throwable cause) {
72: super (cause);
73: }
74:
75: /**
76: * Constructs a new exception with the specified detail message and cause.
77: * <p>
78: * Note that the detail message associated with <code>cause</code> is
79: * <i>not</i> automatically incorporated in this exception's detail
80: * message.
81: *
82: * @param message
83: * the detail message (which is saved for later retrieval by the
84: * {@link #getMessage()} method).
85: * @param cause
86: * the cause (which is saved for later retrieval by the
87: * {@link #getCause()} method). (A <tt>null</tt> value is
88: * permitted, and indicates that the cause is nonexistent or
89: * unknown.)
90: * @see java.lang.Exception#Exception(java.lang.String, java.lang.Throwable)
91: */
92: public InvalidMeasureDataTypeException(final String message,
93: final Throwable cause) {
94: super(message, cause);
95: }
96:
97: }
|