public class LisaException
extends java.lang.Exception
Constructor and Description |
---|
LisaException(java.lang.String node,
java.lang.String detail,
java.lang.Throwable caught)
Construction for the Exception is straight-forward
|
LisaException(java.lang.String detail,
java.lang.Throwable caught)
Construction for the LisaException is straight-forward
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
exceptionToString(java.lang.String header,
java.lang.String node,
java.lang.String detail,
java.lang.Throwable caught)
This is a utility method that will create the boxed-border style strings that
are used by TestRunException and TestDefException.
|
static java.lang.String |
exceptionToString(java.lang.String header,
java.lang.String node,
java.lang.String detail,
java.lang.Throwable caught,
boolean includeStackTrace)
This is a utility method that will create the boxed-border style strings that
are used by TestRunException and TestDefException.
|
java.lang.Throwable |
getCaught() |
java.lang.String |
getMessage() |
java.lang.String |
getNode() |
static boolean |
isOutOfMemoryCause(java.lang.Throwable tw) |
java.lang.String |
toString()
Will create a human-readable (well, it's still an ugly Exception) string
for display in windows or stream to the screen or whatever.
|
public LisaException(java.lang.String node, java.lang.String detail, java.lang.Throwable caught)
node
- - the currently running node when the exception occureddetail
- - human text describing the errorcaught
- - if there was a non-LISA exception thrown, what was itpublic LisaException(java.lang.String detail, java.lang.Throwable caught)
detail
- - human text describing the errorcaught
- - if there was a non-LISA exception thrown, what was itpublic java.lang.String getNode()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.Throwable getCaught()
public java.lang.String toString()
toString
in class java.lang.Throwable
public static java.lang.String exceptionToString(java.lang.String header, java.lang.String node, java.lang.String detail, java.lang.Throwable caught)
header
- - used to display a message in the banner of the error message boxnode
- - the TestNode, DataSet, or etc. name that has the error, or null if n/adetail
- - a string that attempts to breifly describe the errorcaught
- - if there is a nested exception, pass it here, or nullpublic static java.lang.String exceptionToString(java.lang.String header, java.lang.String node, java.lang.String detail, java.lang.Throwable caught, boolean includeStackTrace)
header
- - used to display a message in the banner of the error message boxnode
- - the TestNode, DataSet, or etc. name that has the error, or null if n/adetail
- - a string that attempts to breifly describe the errorcaught
- - if there is a nested exception, pass it here, or nullincludeStackTrace
- - should the exception's stack trace be included?public static boolean isOutOfMemoryCause(java.lang.Throwable tw)
Copyright © 1998-2014 CA, Inc. All Rights Reserved.