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 java.lang.Throwable containsExceptionContainingString(java.lang.Throwable ex, java.lang.String searchingFor, boolean ignoreCase)
           
static MetaMatrixException containsExceptionHavingCode(java.lang.Throwable ex, java.lang.String code)
           
static boolean containsExceptionOfType(java.lang.Throwable ex, java.lang.Class cls)
           
static void showAuthorizationFailureMessage(java.lang.String text, java.lang.Exception e)
           
static void showAuthorizationFailureMessage(java.lang.String text, java.lang.String cmmnt, java.lang.Exception e)
           
static void showCallbackExceptionMessage(java.lang.String text, java.lang.Exception e)
           
static void showCallbackExceptionMessage(java.lang.String text, java.lang.String cmmnt, java.lang.Exception e)
           
static void showCannotInitializeMessage(java.lang.Exception e)
           
static void showCannotInitializeMessage(java.lang.String text, java.lang.Exception e)
           
static void showCannotInitializeMessage(java.lang.String text, java.lang.String cmmnt, java.lang.Exception e)
           
static void showCompNotFoundFailureMessage(java.lang.String text, java.lang.Exception e)
           
static void showCompNotFoundFailureMessage(java.lang.String text, java.lang.String cmmnt, java.lang.Exception e)
           
static void showExternalFailureMessage(java.lang.String text, java.lang.Exception e)
           
static void showExternalFailureMessage(java.lang.String text, java.lang.String cmmnt, java.lang.Exception e)
           
static void showExternalFailureMessage(java.lang.String text, java.lang.String cmmnt, java.lang.Exception e, boolean showlasterror)
           
static void showIllegalRequestMessage(java.lang.String text, java.lang.Exception e)
           
static void showIllegalRequestMessage(java.lang.String text, java.lang.String cmmnt, 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 void showQueryServiceNotAvailableFailureMessage(java.lang.String text, java.lang.Exception e)
           
static void showQueryServiceNotAvailableFailureMessage(java.lang.String text, java.lang.String cmmnt, java.lang.Exception e)
           
static void showUnavailableMessage(java.lang.String text, java.lang.Exception ex)
           
static void showUnspecifiedFailureMessage(java.lang.String text, java.lang.String cmmnt, java.lang.Throwable t)
           
static void showUnspecifiedFailureMessage(java.lang.String text, java.lang.Throwable e)
           
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)

showQueryServiceNotAvailableFailureMessage

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

showCompNotFoundFailureMessage

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

showAuthorizationFailureMessage

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

showExternalFailureMessage

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

showIllegalRequestMessage

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

showCannotInitializeMessage

public static void showCannotInitializeMessage(java.lang.Exception e)

showCannotInitializeMessage

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

showCallbackExceptionMessage

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

showUnspecifiedFailureMessage

public static void showUnspecifiedFailureMessage(java.lang.String text,
                                                 java.lang.Throwable e)

showCompNotFoundFailureMessage

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

showQueryServiceNotAvailableFailureMessage

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

showAuthorizationFailureMessage

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

showExternalFailureMessage

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

showExternalFailureMessage

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

showUnavailableMessage

public static void showUnavailableMessage(java.lang.String text,
                                          java.lang.Exception ex)

showIllegalRequestMessage

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

showCannotInitializeMessage

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

showCallbackExceptionMessage

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

showUnspecifiedFailureMessage

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

containsExceptionOfType

public static boolean containsExceptionOfType(java.lang.Throwable ex,
                                              java.lang.Class cls)

containsExceptionContainingString

public static java.lang.Throwable containsExceptionContainingString(java.lang.Throwable ex,
                                                                    java.lang.String searchingFor,
                                                                    boolean ignoreCase)

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.