|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--com.adventnet.afp.log.LogException
This class extends the class Exception. This class is involved in returning the Exception stack trace and error message.
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, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LogException(java.lang.String message, java.lang.Exception exception)
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.
message
- The error message is passed.exception
- The exception is passed to this method.public LogException(java.lang.String message)
LogException
with the message given in string.
message
- a String
message.Method Detail |
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |