Class ClassFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
- All Implemented Interfaces:
Serializable
- See Also:
- Serialized Form
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
-
Constructor Summary
ConstructorDescriptionClassFormatException(int code)
ClassFormatException(Exception e, char[] fileName, int code, int bufPos)
ClassFormatException(RuntimeException e, char[] fileName)
-
Method Summary
Modifier and TypeMethodDescriptionint
int
Returns the underlyingThrowable
that caused the failure.void
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.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Field Details
-
ErrBadMagic
public static final int ErrBadMagic- See Also:
- Constant Field Values
-
ErrBadMinorVersion
public static final int ErrBadMinorVersion- See Also:
- Constant Field Values
-
ErrBadMajorVersion
public static final int ErrBadMajorVersion- See Also:
- Constant Field Values
-
ErrBadConstantClass
public static final int ErrBadConstantClass- See Also:
- Constant Field Values
-
ErrBadConstantString
public static final int ErrBadConstantString- See Also:
- Constant Field Values
-
ErrBadConstantNameAndType
public static final int ErrBadConstantNameAndType- See Also:
- Constant Field Values
-
ErrBadConstantFieldRef
public static final int ErrBadConstantFieldRef- See Also:
- Constant Field Values
-
ErrBadConstantMethodRef
public static final int ErrBadConstantMethodRef- See Also:
- Constant Field Values
-
ErrBadConstantInterfaceMethodRef
public static final int ErrBadConstantInterfaceMethodRef- See Also:
- Constant Field Values
-
ErrBadConstantPoolIndex
public static final int ErrBadConstantPoolIndex- See Also:
- Constant Field Values
-
ErrBadSuperclassName
public static final int ErrBadSuperclassName- See Also:
- Constant Field Values
-
ErrInterfaceCannotBeFinal
public static final int ErrInterfaceCannotBeFinal- See Also:
- Constant Field Values
-
ErrInterfaceMustBeAbstract
public static final int ErrInterfaceMustBeAbstract- See Also:
- Constant Field Values
-
ErrBadModifiers
public static final int ErrBadModifiers- See Also:
- Constant Field Values
-
ErrClassCannotBeAbstractFinal
public static final int ErrClassCannotBeAbstractFinal- See Also:
- Constant Field Values
-
ErrBadClassname
public static final int ErrBadClassname- See Also:
- Constant Field Values
-
ErrBadFieldInfo
public static final int ErrBadFieldInfo- See Also:
- Constant Field Values
-
ErrBadMethodInfo
public static final int ErrBadMethodInfo- See Also:
- Constant Field Values
-
ErrEmptyConstantPool
public static final int ErrEmptyConstantPool- See Also:
- Constant Field Values
-
ErrMalformedUtf8
public static final int ErrMalformedUtf8- See Also:
- Constant Field Values
-
ErrUnknownConstantTag
public static final int ErrUnknownConstantTag- See Also:
- Constant Field Values
-
ErrTruncatedInput
public static final int ErrTruncatedInput- See Also:
- Constant Field Values
-
ErrMethodMustBeAbstract
public static final int ErrMethodMustBeAbstract- See Also:
- Constant Field Values
-
ErrMalformedAttribute
public static final int ErrMalformedAttribute- See Also:
- Constant Field Values
-
ErrBadInterface
public static final int ErrBadInterface- See Also:
- Constant Field Values
-
ErrInterfaceMustSubclassObject
public static final int ErrInterfaceMustSubclassObject- See Also:
- Constant Field Values
-
ErrIncorrectInterfaceMethods
public static final int ErrIncorrectInterfaceMethods- See Also:
- Constant Field Values
-
ErrInvalidMethodName
public static final int ErrInvalidMethodName- See Also:
- Constant Field Values
-
ErrInvalidMethodSignature
public static final int ErrInvalidMethodSignature- See Also:
- Constant Field Values
-
ErrBadComponentInfo
public static final int ErrBadComponentInfo- See Also:
- Constant Field Values
-
-
Constructor Details
-
ClassFormatException
-
ClassFormatException
public ClassFormatException(int code) -
ClassFormatException
-
-
Method Details
-
getErrorCode
public int getErrorCode()- Returns:
- int
-
getBufferPosition
public int getBufferPosition()- Returns:
- int
-
getException
Returns the underlyingThrowable
that caused the failure.- Returns:
- the wrappered
Throwable
, ornull
if the direct case of the failure was at the Java model layer
-
printStackTrace
public void printStackTrace()- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
Prints this exception's stack trace to the given print stream.- Overrides:
printStackTrace
in classThrowable
- Parameters:
output
- the print stream- Since:
- 3.0
-
printStackTrace
Prints this exception's stack trace to the given print writer.- Overrides:
printStackTrace
in classThrowable
- Parameters:
output
- the print writer- Since:
- 3.0
-