org.webdocwf.util.loader
Class LoaderException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.webdocwf.util.loader.LoaderException
All Implemented Interfaces:
java.io.Serializable

public class LoaderException
extends java.lang.Exception

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

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

Constructor Summary
LoaderException(java.lang.String msg)
          This is the public constructor with one parameter
LoaderException(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

LoaderException

public LoaderException(java.lang.String msg)
This is the public constructor with one parameter

Parameters:
msg - is constructor argument

LoaderException

public LoaderException(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

Overrides:
getMessage in class java.lang.Throwable
Returns:
message

getCause

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

Overrides:
getCause in class java.lang.Throwable
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.

Overrides:
printStackTrace in class java.lang.Throwable

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.

Overrides:
printStackTrace in class java.lang.Throwable
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.

Overrides:
printStackTrace in class java.lang.Throwable
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.