Oracle Repository API and Model Reference Guide


Contents


API Methods


Element Definitions


Index  


oracle.repos.tools.cws.alert
Class CWException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--oracle.repos.tools.cws.alert.CWException
Direct Known Subclasses:
DataServiceException, DependencyException, DiffMergeException, EmbeddedException, ImporterException, ReposIdeException, ReposServiceException

public class CWException
extends Exception
implements CWAlertUI, Defs

The class used to hold Error/Warning message definition which can be displayed by the error/warning dialog. A stack of error/warning messages can be held.

See Also:

Serialized Form

Fields inherited from interface oracle.repos.tools.cws.defs.Defs
ABORT_ACTION, ALERT_ARI, ALERT_ERROR, ALERT_INFO, ALERT_O, ALERT_OC, ALERT_RC, ALERT_WARNING, ALERT_YN, ALERT_YNC, APPLY_ACTION, BAC, BAH, BAS, BAW, BUTTON_ABORT, BUTTON_ACTION, BUTTON_ACTION_CLOSE, BUTTON_ACTION_HELP, BUTTON_ACTION_SAVE, BUTTON_ACTION_WHAT, BUTTON_APPLY, BUTTON_CANCEL, BUTTON_CLOSE, BUTTON_FINISH, BUTTON_HELP, BUTTON_IGNORE, BUTTON_NO, BUTTON_OK, BUTTON_RETRY, BUTTON_USER, BUTTON_WHATSTHIS, BUTTON_YES, CANCEL_ACTION, CLOSE_ACTION, FINISH_ACTION, HELP_ACTION, IGNORE_ACTION, NO_ACTION, OK_ACTION, RETRY_ACTION, WHAT_ACTION, YES_ACTION

 

 

Method Summary
(package private) static void ()
           
 void addAlert(CWAlertData data)
          Adds a message to the message stack
 Enumeration getAlerts()
          Returns an enumerator of all stacked messages.
 String getMessage()
           
 int showAlert(Frame parent)
          Deprecated. From 19-Jan-99. Clients should provide an Application name for the dialog title.
 int showAlert(Frame parent, String title)
          Displays the error stack dialog.

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Method Detail

addAlert

public void addAlert(CWAlertData data)
              throws IllegalArgumentException
Adds a message to the message stack
Parameters:
Data - object controlling the alert

showAlert

public int showAlert(Frame parent)
Deprecated. From 19-Jan-99. Clients should provide an Application name for the dialog title.
Displays the error stack dialog.
Specified by:
showAlert in interface CWAlertUI
Parameters:
parent - frame
Returns:
ID of dismiss button (always the Ok button for this dialog)
Throws:
-  
See Also:
showAlert(Frame parent, String title)

showAlert

public int showAlert(Frame parent,
                     String title)
Displays the error stack dialog.
Parameters:
parent - frame
dialog - title
Returns:
ID of dismiss button (always the Ok button for this dialog)
Throws:
-  

getAlerts

public Enumeration getAlerts()
Returns an enumerator of all stacked messages. When enumerated, messages are returned from the top level message down to the lowest level message.
Parameters:
none -  
Returns:
enumerator object.
Throws:
-  

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

static void ()

BM0463 - JR0670 - JDev446