1 /***
2 * @(#) MirkEIOException.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 import java.io.IOException;
32
33 /***
34 * @author Abuayyub
35 *
36 */
37 public class MirkEIOException extends IOException {
38
39
40 /***
41 * Comment for <code>serialVersionUID</code>
42 */
43 private static final long serialVersionUID = 3257567308535771186L;
44
45 private Throwable cause;
46
47
48 /***
49 * Constructor with a message of the exception
50 *
51 * @param msg Message to further explain the exception
52 *
53 **/
54 public MirkEIOException ( String msg )
55 {
56 super( msg);
57 }
58
59 /***
60 * Constructor with a message of the exception
61 *
62 * @param object root cause of exception
63 **/
64 public MirkEIOException ( Throwable object )
65 {
66 super.initCause(object);
67 }
68
69
70
71
72
73 /***
74 * Describes the instance and its content for debugging purpose
75 *
76 * @return Using the one from the super class
77 **/
78 public String toString()
79 {
80 return super.toString();
81 }
82
83 /***
84 * Determines if the given instance is the same as this instance
85 * based on its content. This means that it has to be of the same
86 * class ( or subclass ) and it has to have the same content
87 *
88 * @param object
89 *
90 * @return Returns the equals value from the super class
91 **/
92 public boolean equals( Object object )
93 {
94 return super.equals( object );
95 }
96
97 /***
98 * Returns the hashcode of this instance
99 *
100 * @return Hashcode of the super class
101 **/
102 public int hashCode()
103 {
104 return super.hashCode();
105 }
106 }