Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: jreversepro/parser/ClassParserException.java


1   /*
2    * @(#)ClassParserException.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.parser;
24  
25  /**
26   * Thrown if Class File does not follow the prescribed format.
27   * @author Karthik Kumar
28   * @version 1.3
29   **/
30  public class ClassParserException extends Exception {
31  
32      /**
33       * Exception message.
34       **/
35      private String msg;
36  
37      /**
38       * Constructor.
39       * @param aMsg Exception Message.
40       **/
41      public ClassParserException (String aMsg) {
42          msg  = aMsg;
43      }
44  
45      /**
46       * Constructor.
47       * @param aMsg Exception Message as a StringBuffer.
48       **/
49      public ClassParserException (StringBuffer aMsg) {
50          msg = aMsg.toString();
51      }
52  
53      /**
54       * Serialized version.
55       * @return Returns a Stringified version of the string.
56       **/
57      public String toString() {
58          return "jreversepro.parser.ClassParserException : " + msg;
59      }
60  }