org.jibx.xsd2jibx
Class GeneratorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jibx.xsd2jibx.GeneratorException
All Implemented Interfaces:
java.io.Serializable

public class GeneratorException
extends java.lang.RuntimeException

See Also:
Serialized Form

Constructor Summary
GeneratorException(java.lang.String msg)
          Constructor from message.
GeneratorException(java.lang.String msg, java.lang.Throwable root)
          Constructor from message and wrapped exception.
 
Method Summary
 java.lang.Throwable getRootCause()
          Get root cause exception.
 void printStackTrace()
          Print stack trace to standard error.
 void printStackTrace(java.io.PrintStream s)
          Print stack trace to stream.
 void printStackTrace(java.io.PrintWriter s)
          Print stack trace to writer.
 java.lang.String toString()
          Build string representation.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeneratorException

public GeneratorException(java.lang.String msg)
Constructor from message.

Parameters:
msg - message describing the exception condition

GeneratorException

public GeneratorException(java.lang.String msg,
                          java.lang.Throwable root)
Constructor from message and wrapped exception.

Parameters:
msg - message describing the exception condition
root - exception which caused this exception
Method Detail

getRootCause

public java.lang.Throwable getRootCause()
Get root cause exception.

Returns:
exception that caused this exception

toString

public java.lang.String toString()
Build string representation. If there's no wrapped exception this just returns the usual text, otherwise it appends the wrapped exception information to the text generated from this one.

Overrides:
toString in class java.lang.Throwable
Returns:
string representation

printStackTrace

public void printStackTrace()
Print stack trace to standard error. This is an override of the base class method to implement exception chaining.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Print stack trace to stream. This is an override of the base class method to implement exception chaining.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
s - stream for printing stack trace

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Print stack trace to writer. This is an override of the base class method to implement exception chaining.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
s - writer for printing stack trace