org.objectweb.fractal.julia.asm
Class ClassGenerationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.ClassNotFoundException
              extended by org.objectweb.fractal.julia.asm.ClassGenerationException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IllegalClassDescriptorException

public class ClassGenerationException
extends ClassNotFoundException

Thrown when a problem occurs during the generation of a class. See generateClass.

See Also:
Serialized Form

Constructor Summary
ClassGenerationException(Throwable exception, String classDescriptor, String message)
          Constructs a new ClassGenerationException object.
 
Method Summary
 String getClassDescriptor()
          Returns the class descriptor of the class that cannot be generated.
 Throwable getException()
           
 void printStackTrace()
          Prints the stack backtrace.
 void printStackTrace(PrintStream s)
          Prints this exception and its backtrace to the specified print stream.
 void printStackTrace(PrintWriter s)
          Prints this exception and its backtrace to the specified print writer.
 
Methods inherited from class java.lang.ClassNotFoundException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassGenerationException

public ClassGenerationException(Throwable exception,
                                String classDescriptor,
                                String message)
Constructs a new ClassGenerationException object.

Parameters:
exception - the cause of this exception. May be null.
classDescriptor - the class descriptor of the class that cannot be generated.
message - the name of the interface that cannot be found.
Method Detail

getException

public Throwable getException()
Overrides:
getException in class ClassNotFoundException

getClassDescriptor

public String getClassDescriptor()
Returns the class descriptor of the class that cannot be generated.

Returns:
the class descriptor of the class that cannot be generated.

printStackTrace

public void printStackTrace()
Prints the stack backtrace.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream s)
Prints this exception and its backtrace to the specified print stream.

Overrides:
printStackTrace in class Throwable
Parameters:
s - PrintStream to use for output.

printStackTrace

public void printStackTrace(PrintWriter s)
Prints this exception and its backtrace to the specified print writer.

Overrides:
printStackTrace in class Throwable
Parameters:
s - PrintWriter to use for output.