org.webdocwf.util.loader.generator
Class GeneratorException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.webdocwf.util.loader.generator.GeneratorException
All Implemented Interfaces:
java.io.Serializable

public class GeneratorException
extends java.lang.Exception

GeneratorException class is used for handling the exceptions in Enhydra Octopus application.

Version:
1.0
Author:
Milosevic Sinisa
See Also:
Serialized Form

Constructor Summary
GeneratorException(java.lang.String msg)
          This is the public constructor with one parameter
GeneratorException(java.lang.String msg, java.lang.Throwable cause)
          This is the public constructor with two parameter
 
Method Summary
 java.lang.Throwable getCause()
          Gets the exception associated with this exception.
 java.lang.String getMessage()
          This method read message from exception object
 java.lang.String getStackTraceAsString()
          Construct string with stack trace.
 void printStackTrace()
          Prints this ChainedException and its backtrace, and the causes and their stack traces to the standard error stream.
 void printStackTrace(java.io.PrintStream s)
          Prints this LoaderException and its backtrace, and the causes and their stack traces to the e specified print stream.
 void printStackTrace(java.io.PrintWriter s)
          Prints this LoaderException and its backtrace, and the causes and their stack traces to the specified print writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
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)
This is the public constructor with one parameter

Parameters:
msg - is constructor argument

GeneratorException

public GeneratorException(java.lang.String msg,
                          java.lang.Throwable cause)
This is the public constructor with two parameter

Parameters:
msg - is first constructor parameter
cause - is secund constructor parameter
Method Detail

getMessage

public java.lang.String getMessage()
This method read message from exception object

Returns:
message

getCause

public java.lang.Throwable getCause()
Gets the exception associated with this exception.

Returns:
The exception or null if no cause is specified.

printStackTrace

public void printStackTrace()
Prints this ChainedException and its backtrace, and the causes and their stack traces to the standard error stream.


printStackTrace

public void printStackTrace(java.io.PrintStream s)
Prints this LoaderException and its backtrace, and the causes and their stack traces to the e specified print stream.

Parameters:
s - represents PrintWriter stream

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Prints this LoaderException and its backtrace, and the causes and their stack traces to the specified print writer.

Parameters:
s - represents PrintWriter stream

getStackTraceAsString

public java.lang.String getStackTraceAsString()
Construct string with stack trace.

Returns:
String representation of stack trace.


Copyright © 2002-2007 Together - the Workgroup. All Rights Reserved.