com.metamatrix.console.util
Class ExceptionUtility

java.lang.Object
  extended by com.metamatrix.console.util.ExceptionUtility

public class ExceptionUtility
extends java.lang.Object


Field Summary
static java.lang.String ERROR_DIALOG_DIR_KEY
           
static java.lang.String MSG_AUTHORIZATION_FAILURE
           
static java.lang.String MSG_CALLBACK_PROBLEM
           
static java.lang.String MSG_CANNOT_INITIALIZE
           
static java.lang.String MSG_COMP_NOT_FOUND
           
static java.lang.String MSG_EXTERNAL_FAILURE
           
static java.lang.String MSG_HOST_NOT_FOUND
           
static java.lang.String MSG_ILLEGAL_REQUEST
           
static java.lang.String MSG_QUERY_SERVICE_NOT_FOUND
           
static java.lang.String MSG_UNSPECIFIED_FAILURE
           
static java.lang.String TITLE_DEFAULT
           
 
Constructor Summary
ExceptionUtility()
           
 
Method Summary
static MetaMatrixException containsExceptionHavingCode(java.lang.Throwable ex, java.lang.String code)
           
static boolean containsExceptionOfType(java.lang.Throwable ex, java.lang.Class<? extends java.lang.Throwable> cls)
           
static void showCannotInitializeMessage(java.lang.String text, java.lang.Exception e)
           
static void showExternalFailureMessage(java.lang.String text, java.lang.Exception e)
           
static void showMessage(java.lang.String text, java.lang.String comment, java.lang.Throwable thr)
           
static void showMessage(java.lang.String text, java.lang.Throwable t)
           
static java.lang.Throwable unRollException(java.lang.Throwable throwable)
          Unroll a chain of exceptions to return the cause.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_DIALOG_DIR_KEY

public static final java.lang.String ERROR_DIALOG_DIR_KEY
See Also:
Constant Field Values

MSG_HOST_NOT_FOUND

public static final java.lang.String MSG_HOST_NOT_FOUND

MSG_COMP_NOT_FOUND

public static final java.lang.String MSG_COMP_NOT_FOUND

MSG_QUERY_SERVICE_NOT_FOUND

public static final java.lang.String MSG_QUERY_SERVICE_NOT_FOUND

MSG_AUTHORIZATION_FAILURE

public static final java.lang.String MSG_AUTHORIZATION_FAILURE

MSG_EXTERNAL_FAILURE

public static final java.lang.String MSG_EXTERNAL_FAILURE

MSG_ILLEGAL_REQUEST

public static final java.lang.String MSG_ILLEGAL_REQUEST

MSG_CANNOT_INITIALIZE

public static final java.lang.String MSG_CANNOT_INITIALIZE

MSG_CALLBACK_PROBLEM

public static final java.lang.String MSG_CALLBACK_PROBLEM

MSG_UNSPECIFIED_FAILURE

public static final java.lang.String MSG_UNSPECIFIED_FAILURE

TITLE_DEFAULT

public static final java.lang.String TITLE_DEFAULT
Constructor Detail

ExceptionUtility

public ExceptionUtility()
Method Detail

showMessage

public static void showMessage(java.lang.String text,
                               java.lang.String comment,
                               java.lang.Throwable thr)

showMessage

public static void showMessage(java.lang.String text,
                               java.lang.Throwable t)

showExternalFailureMessage

public static void showExternalFailureMessage(java.lang.String text,
                                              java.lang.Exception e)

showCannotInitializeMessage

public static void showCannotInitializeMessage(java.lang.String text,
                                               java.lang.Exception e)

containsExceptionOfType

public static boolean containsExceptionOfType(java.lang.Throwable ex,
                                              java.lang.Class<? extends java.lang.Throwable> cls)

containsExceptionHavingCode

public static MetaMatrixException containsExceptionHavingCode(java.lang.Throwable ex,
                                                              java.lang.String code)

unRollException

public static java.lang.Throwable unRollException(java.lang.Throwable throwable)
Unroll a chain of exceptions to return the cause.

Returns:
A Throwable exception that represents the cause of the problem.


Copyright © 2009. All Rights Reserved.