Class ExceptionHandler
java.lang.Object
com.ibm.jvm.dtfjview.commands.ExceptionHandler
Class which attempts to handle exceptions thrown by the DTFJ API in a consistent manner.
It is context aware and knows which DTFJ calls will not be possible when analyzing certain
artifacts. e.g. it understands that thread information is not available from a PHD file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
handleException
(BaseJdmpviewCommand cmd, Throwable cause) Handle an exception thrown by the DTFJ API.
-
Constructor Details
-
ExceptionHandler
public ExceptionHandler()
-
-
Method Details
-
handleException
Handle an exception thrown by the DTFJ API.- Parameters:
cmd
- the command current executing the API. This is required to provide access to context information.cause
- exception to be handled- Returns:
- textual data to be written out
-