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:
java.io.Serializable
public class ClassNameMismatchException extends InvalidClassFileFormatException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClassNameMismatchException(ClassDescriptor expectedClassDescriptor, ClassDescriptor loadedClassDescriptor, ICodeBaseEntry codeBaseEntry)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassDescriptor
getLoadedClassDescriptor()
-
Methods inherited from class edu.umd.cs.findbugs.classfile.InvalidClassFileFormatException
getClassDescriptor, getCodeBaseEntry, getMessage
-
-
-
-
Constructor Detail
-
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 Detail
-
getLoadedClassDescriptor
public ClassDescriptor getLoadedClassDescriptor()
- Returns:
- Returns the loadedClassDescriptor.
-
-