Debian Codegraph @

src/java/org/astrogrid/samp/DataException.java

raw
1 package org.astrogrid.samp;
2
3 /**
4 * Unchecked exception thrown when a data structure for use with
5 * SAMP does not have the correct form.
6 *
7 * @author Mark Taylor
8 * @since 15 Jul 2008
9 */
10 public class DataException extends IllegalArgumentException {
11
12 /**
13 * Constructs an exception with no message.
14 */
15 public DataException() {
16 super();
17 }
18
19 /**
20 * Consructs an exception with a given message.
21 *
22 * @param msg message
23 */
24 public DataException( String msg ) {
25 super( msg );
26 }
27
28 /**
29 * Constructs an exception with a given cause.
30 *
31 * @param e cause of this exception
32 */
33 public DataException( Throwable e ) {
34 this();
35 initCause( e );
36 }
37
38 /**
39 * Constructs an exception with a given message and cause.
40 *
41 * @param msg message
42 * @param e cause of this exception
43 */
44 public DataException( String msg, Throwable e ) {
45 this( msg );
46 initCause( e );
47 }
48 }