org.objectweb.fractal.julia.asm
Class ClassGenerationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.ClassNotFoundException
              extended byorg.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()

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.


printStackTrace

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

Parameters:
s - PrintStream to use for output.

printStackTrace

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

Parameters:
s - PrintWriter to use for output.