FindBugs™ 1.3.9

edu.umd.cs.findbugs.classfile
Class ClassNameMismatchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.umd.cs.findbugs.classfile.CheckedAnalysisException
              extended by edu.umd.cs.findbugs.classfile.InvalidClassFileFormatException
                  extended by 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
ClassNameMismatchException(ClassDescriptor expectedClassDescriptor, ClassDescriptor loadedClassDescriptor, ICodeBaseEntry codeBaseEntry)
          Constructor.
 
Method Summary
 ClassDescriptor getLoadedClassDescriptor()
           
 
Methods inherited from class edu.umd.cs.findbugs.classfile.InvalidClassFileFormatException
getClassDescriptor, getCodeBaseEntry, getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassNameMismatchException

public ClassNameMismatchException(ClassDescriptor expectedClassDescriptor,
                                  ClassDescriptor loadedClassDescriptor,
                                  ICodeBaseEntry codeBaseEntry)
Constructor.

Parameters:
expectedClassDescriptor - class descriptor we were expected based on the resource name
loadedClassDescriptor - class descriptor actually found in the class file
codeBaseEntry - codebase entry the class was loaded from
Method Detail

getLoadedClassDescriptor

public ClassDescriptor getLoadedClassDescriptor()
Returns:
Returns the loadedClassDescriptor.

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.