Source code: jreversepro/revengine/RevEngineException.java
1 /**
2 * @(#)RevEngineException.java
3 *
4 * JReversePro - Java Decompiler / Disassembler.
5 * Copyright (C) 2000 2001 Karthik Kumar.
6 * EMail: akkumar@users.sourceforge.net
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it , under the terms of the GNU General Public License as published
10 * by the Free Software Foundation; either version 2 of the License,
11 * or (at your option) any later version.
12 *
13 * This program 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.
16 * See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program.If not, write to
19 * The Free Software Foundation, Inc.,
20 * 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
22 **/
23 package jreversepro.revengine;
24
25
26 /**
27 * Exception class thrown in case of any error while
28 * decompiling/ disassembling the .class file.
29 * @author Karthik Kumar.
30 **/
31 public class RevEngineException extends Exception {
32
33 /**
34 * @param msg Exception message.
35 **/
36 public RevEngineException(String msg) {
37 super(msg);
38 }
39
40
41 /**
42 * @param msg Exception message.
43 * @param ex Parent Exception reference.
44 **/
45 public RevEngineException(String msg, Exception ex) {
46 super(msg, ex);
47 }
48
49
50 /**
51 * @return Return Stringified representation of the
52 * Exception class.
53 **/
54 public String toString() {
55 return (super.toString());
56 }
57 }