KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > core > util > ClassFormatException


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.core.util;
12
13 /**
14  * Exception thrown by a class file reader when encountering a error in decoding
15  * information contained in a .class file.
16  *
17  * @since 2.0
18  */

19 public class ClassFormatException extends Exception JavaDoc {
20     
21     public static final int ERROR_MALFORMED_UTF8 = 1;
22     public static final int ERROR_TRUNCATED_INPUT = 2;
23     public static final int INVALID_CONSTANT_POOL_ENTRY = 3;
24     public static final int TOO_MANY_BYTES = 4;
25     public static final int INVALID_ARGUMENTS_FOR_INVOKEINTERFACE = 5;
26     public static final int INVALID_BYTECODE = 6;
27
28     /**
29      * @since 3.0
30      */

31     public static final int INVALID_TAG_CONSTANT = 7;
32
33     /**
34      * @since 3.0
35      */

36     public static final int INVALID_MAGIC_NUMBER = 8;
37
38     private static final long serialVersionUID = 6582900558320612988L; // backward compatible
39

40     /**
41      * Constructor for ClassFormatException.
42      * @param errorID the given error ID
43      */

44     public ClassFormatException(int errorID) {
45         // TODO (olivier) what is the errorID?
46
}
47
48     /**
49      * Constructor for ClassFormatException.
50      * @param message the message for the exception
51      */

52     public ClassFormatException(String JavaDoc message) {
53         super(message);
54     }
55 }
56
Popular Tags