org.eclipse.jdt.internal.compiler.classfmt
类 ClassFormatException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
所有已实现的接口:
Serializable

public class ClassFormatException
extends Exception

另请参见:
序列化表格

字段摘要
static int ErrBadClassname
           
static int ErrBadConstantClass
           
static int ErrBadConstantFieldRef
           
static int ErrBadConstantInterfaceMethodRef
           
static int ErrBadConstantMethodRef
           
static int ErrBadConstantNameAndType
           
static int ErrBadConstantPoolIndex
           
static int ErrBadConstantString
           
static int ErrBadFieldInfo
           
static int ErrBadInterface
           
static int ErrBadMagic
           
static int ErrBadMajorVersion
           
static int ErrBadMethodInfo
           
static int ErrBadMinorVersion
           
static int ErrBadModifiers
           
static int ErrBadSuperclassName
           
static int ErrClassCannotBeAbstractFinal
           
static int ErrEmptyConstantPool
           
static int ErrIncorrectInterfaceMethods
           
static int ErrInterfaceCannotBeFinal
           
static int ErrInterfaceMustBeAbstract
           
static int ErrInterfaceMustSubclassObject
           
static int ErrInvalidMethodName
           
static int ErrInvalidMethodSignature
           
static int ErrMalformedAttribute
           
static int ErrMalformedUtf8
           
static int ErrMethodMustBeAbstract
           
static int ErrTruncatedInput
           
static int ErrUnknownConstantTag
           
 
构造方法摘要
ClassFormatException(int code)
           
ClassFormatException(int code, int bufPos)
           
ClassFormatException(RuntimeException e, char[] fileName)
           
 
方法摘要
 int getBufferPosition()
           
 int getErrorCode()
           
 Throwable getException()
          Returns the underlying Throwable that caused the failure.
 void printStackTrace()
           
 void printStackTrace(PrintStream output)
          Prints this exception's stack trace to the given print stream.
 void printStackTrace(PrintWriter output)
          Prints this exception's stack trace to the given print writer.
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

ErrBadMagic

public static final int ErrBadMagic
另请参见:
常量字段值

ErrBadMinorVersion

public static final int ErrBadMinorVersion
另请参见:
常量字段值

ErrBadMajorVersion

public static final int ErrBadMajorVersion
另请参见:
常量字段值

ErrBadConstantClass

public static final int ErrBadConstantClass
另请参见:
常量字段值

ErrBadConstantString

public static final int ErrBadConstantString
另请参见:
常量字段值

ErrBadConstantNameAndType

public static final int ErrBadConstantNameAndType
另请参见:
常量字段值

ErrBadConstantFieldRef

public static final int ErrBadConstantFieldRef
另请参见:
常量字段值

ErrBadConstantMethodRef

public static final int ErrBadConstantMethodRef
另请参见:
常量字段值

ErrBadConstantInterfaceMethodRef

public static final int ErrBadConstantInterfaceMethodRef
另请参见:
常量字段值

ErrBadConstantPoolIndex

public static final int ErrBadConstantPoolIndex
另请参见:
常量字段值

ErrBadSuperclassName

public static final int ErrBadSuperclassName
另请参见:
常量字段值

ErrInterfaceCannotBeFinal

public static final int ErrInterfaceCannotBeFinal
另请参见:
常量字段值

ErrInterfaceMustBeAbstract

public static final int ErrInterfaceMustBeAbstract
另请参见:
常量字段值

ErrBadModifiers

public static final int ErrBadModifiers
另请参见:
常量字段值

ErrClassCannotBeAbstractFinal

public static final int ErrClassCannotBeAbstractFinal
另请参见:
常量字段值

ErrBadClassname

public static final int ErrBadClassname
另请参见:
常量字段值

ErrBadFieldInfo

public static final int ErrBadFieldInfo
另请参见:
常量字段值

ErrBadMethodInfo

public static final int ErrBadMethodInfo
另请参见:
常量字段值

ErrEmptyConstantPool

public static final int ErrEmptyConstantPool
另请参见:
常量字段值

ErrMalformedUtf8

public static final int ErrMalformedUtf8
另请参见:
常量字段值

ErrUnknownConstantTag

public static final int ErrUnknownConstantTag
另请参见:
常量字段值

ErrTruncatedInput

public static final int ErrTruncatedInput
另请参见:
常量字段值

ErrMethodMustBeAbstract

public static final int ErrMethodMustBeAbstract
另请参见:
常量字段值

ErrMalformedAttribute

public static final int ErrMalformedAttribute
另请参见:
常量字段值

ErrBadInterface

public static final int ErrBadInterface
另请参见:
常量字段值

ErrInterfaceMustSubclassObject

public static final int ErrInterfaceMustSubclassObject
另请参见:
常量字段值

ErrIncorrectInterfaceMethods

public static final int ErrIncorrectInterfaceMethods
另请参见:
常量字段值

ErrInvalidMethodName

public static final int ErrInvalidMethodName
另请参见:
常量字段值

ErrInvalidMethodSignature

public static final int ErrInvalidMethodSignature
另请参见:
常量字段值
构造方法详细信息

ClassFormatException

public ClassFormatException(RuntimeException e,
                            char[] fileName)

ClassFormatException

public ClassFormatException(int code)

ClassFormatException

public ClassFormatException(int code,
                            int bufPos)
方法详细信息

getErrorCode

public int getErrorCode()
返回:
int

getBufferPosition

public int getBufferPosition()
返回:
int

getException

public Throwable getException()
Returns the underlying Throwable that caused the failure.

返回:
the wrappered Throwable, or null if the direct case of the failure was at the Java model layer

printStackTrace

public void printStackTrace()
覆盖:
Throwable 中的 printStackTrace

printStackTrace

public void printStackTrace(PrintStream output)
Prints this exception's stack trace to the given print stream.

覆盖:
Throwable 中的 printStackTrace
参数:
output - the print stream
从以下版本开始:
3.0

printStackTrace

public void printStackTrace(PrintWriter output)
Prints this exception's stack trace to the given print writer.

覆盖:
Throwable 中的 printStackTrace
参数:
output - the print writer
从以下版本开始:
3.0


Copyright © 2013. All Rights Reserved.