Package edu.umd.cs.findbugs.classfile
Class ClassNameMismatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
edu.umd.cs.findbugs.classfile.CheckedAnalysisException
edu.umd.cs.findbugs.classfile.InvalidClassFileFormatException
edu.umd.cs.findbugs.classfile.ClassNameMismatchException
- All Implemented Interfaces:
Serializable
Exception to indicate that the class name defined in a class file does not
match its expected class name (as indicated by its resource name).
- Author:
- David Hovemeyer
- See Also:
-
Constructor Summary
ConstructorDescriptionClassNameMismatchException
(ClassDescriptor expectedClassDescriptor, ClassDescriptor loadedClassDescriptor, ICodeBaseEntry codeBaseEntry) Constructor. -
Method Summary
Methods inherited from class edu.umd.cs.findbugs.classfile.InvalidClassFileFormatException
getClassDescriptor, getCodeBaseEntry, getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ClassNameMismatchException
public ClassNameMismatchException(ClassDescriptor expectedClassDescriptor, ClassDescriptor loadedClassDescriptor, ICodeBaseEntry codeBaseEntry) Constructor.- Parameters:
expectedClassDescriptor
- class descriptor we were expected based on the resource nameloadedClassDescriptor
- class descriptor actually found in the class filecodeBaseEntry
- codebase entry the class was loaded from
-
-
Method Details
-
getLoadedClassDescriptor
- Returns:
- Returns the loadedClassDescriptor.
-