1 /***
2 * @(#) MirkEApplicationException.java
3 *
4 * Created by:abuayyub on 29 January, 2005.
5
6 Copyright (c) 2004 Arizona State University - Cancer Research Institute. All rights reserved.
7
8 MirkE is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13 MirkE is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with MirkE; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US
21
22 */
23 package edu.asu.cri.MirkE.exceptions;
24
25 /***
26 * @author abuayyub
27 *
28 * TODO To change the template for this generated type comment go to
29 * Window - Preferences - Java - Code Style - Code Templates
30 */
31 public class MirkEApplicationException extends Throwable{
32 /***
33 * Comment for <code>serialVersionUID</code>
34 */
35 private static final long serialVersionUID = 3832901057243395895L;
36
37 /***
38 * Constructor with a message of the exception
39 *
40 * @param msg Message to further explain the exception
41 **/
42 public MirkEApplicationException ( String msg )
43 {
44 super( msg );
45 }
46
47 /***
48 * Constructor with a message of the exception
49 *
50 * @param msg Message to further explain the exception
51 * @param object root cause of exception
52 **/
53 public MirkEApplicationException ( String msg, Throwable object )
54 {
55 super( msg, object);
56 }
57
58 /***
59 * Constructor with a message of the exception
60 *
61 * @param object root cause of exception
62 **/
63 public MirkEApplicationException ( Throwable object )
64 {
65 super( object);
66 }
67
68
69
70
71
72 /***
73 * Describes the instance and its content for debugging purpose
74 *
75 * @return Using the one from the super class
76 **/
77 public String toString()
78 {
79 return super.toString();
80 }
81
82 /***
83 * Determines if the given instance is the same as this instance
84 * based on its content. This means that it has to be of the same
85 * class ( or subclass ) and it has to have the same content
86 *
87 * @param object
88 *
89 * @return Returns the equals value from the super class
90 **/
91 public boolean equals( Object object )
92 {
93 return super.equals( object );
94 }
95
96 /***
97 * Returns the hashcode of this instance
98 *
99 * @return Hashcode of the super class
100 **/
101 public int hashCode()
102 {
103 return super.hashCode();
104 }
105 }