Class ExceptionHandler

java.lang.Object
com.ibm.jvm.dtfjview.commands.ExceptionHandler

public class ExceptionHandler extends Object
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 Details

    • ExceptionHandler

      public ExceptionHandler()
  • Method Details

    • handleException

      public static String handleException(BaseJdmpviewCommand cmd, Throwable cause)
      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