com.adventnet.afp.log
Class LogException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.adventnet.afp.log.LogException
All Implemented Interfaces:
java.io.Serializable

public class LogException
extends java.lang.Exception

This class extends the class Exception. This class is involved in returning the Exception stack trace and error message.

See Also:
Serialized Form

Constructor Summary
LogException(java.lang.String message)
          Creates a new LogException with the message given in string.
LogException(java.lang.String message, java.lang.Exception exception)
          Creates a new LogException from various classes when there is exception .
 
Method Summary
 java.lang.Throwable getCause()
          This method returns the exception stack trace.
 java.lang.String getMessage()
          This method returns the error message of the exception.
 void printStackTrace()
          Method overridden to facilitate printing of inner exceptions
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogException

public LogException(java.lang.String message,
                    java.lang.Exception exception)
Creates a new LogException from various classes when there is exception . This constructor will set the error message and the exception stack trace. So that the message and exception can be retreived using appropriate methods for this constructor.
Parameters:
message - The error message is passed.
exception - The exception is passed to this method.

LogException

public LogException(java.lang.String message)
Creates a new LogException with the message given in string.
Parameters:
message - a String message.
Method Detail

getCause

public java.lang.Throwable getCause()
This method returns the exception stack trace.
Returns:
The exception stack trace.

getMessage

public java.lang.String getMessage()
This method returns the error message of the exception.
Overrides:
getMessage in class java.lang.Throwable
Returns:
The error message.

printStackTrace

public void printStackTrace()
Method overridden to facilitate printing of inner exceptions
Overrides:
printStackTrace in class java.lang.Throwable


Copyright (c)AdventNet Inc., 1996-2004