FindBugs™ 1.3.9

edu.umd.cs.findbugs.ba
Class ClassNotFoundExceptionParser

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.ClassNotFoundExceptionParser

public class ClassNotFoundExceptionParser
extends java.lang.Object

Parse the detail message in a ClassNotFoundException to extract the name of the missing class. Unfortunately, this information is not directly available from the exception object. So, this class parses the detail message in several common formats (such as the format used by BCEL).

Author:
David Hovemeyer

Constructor Summary
ClassNotFoundExceptionParser()
           
 
Method Summary
static java.lang.String getMissingClassName(java.lang.ClassNotFoundException ex)
          Get the name of the missing class from a ClassNotFoundException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassNotFoundExceptionParser

public ClassNotFoundExceptionParser()
Method Detail

getMissingClassName

public static java.lang.String getMissingClassName(java.lang.ClassNotFoundException ex)
Get the name of the missing class from a ClassNotFoundException.

Parameters:
ex - the ClassNotFoundException
Returns:
the name of the missing class, or null if we couldn't figure out the class name

FindBugs™ 1.3.9

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