com.ibm.team.fvt.tests.clm.scenario.errors
Class ClmServerMessageError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by java.lang.AssertionError
              extended by junit.framework.AssertionFailedError
                  extended by com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError
                      extended by com.ibm.team.fvt.tests.scenario.errors.ServerMessageError
                          extended by com.ibm.team.fvt.tests.clm.scenario.errors.ClmServerMessageError
All Implemented Interfaces:
java.io.Serializable

public class ClmServerMessageError
extends com.ibm.team.fvt.tests.scenario.errors.ServerMessageError

Error to report CLM Server error message.

If there's a 'show details' link, then it's possible to get its content by calling getDetails() method. Otherwise, the CLM Server error message is accessible using the getSummary() method.

If the error is displayed in a dialog, then the dialog can be closed using the cancel() method.

See Also:
Serialized Form

Constructor Summary
ClmServerMessageError(java.lang.String message, com.ibm.team.fvt.tests.web.WebBrowserElement element)
           
ClmServerMessageError(java.lang.String message, com.ibm.team.fvt.tests.web.WebBrowserElement element, ClmWebPageDialog dialog)
           
 
Method Summary
 void cancel()
          Cancels the dialog where the error msg is displayed.
 java.lang.String getDetails()
          Returns the error message details after having clicked on the 'show details' link of the error message.
 java.lang.String getSummary()
          Returns the error message summary before having clicked on the 'show details' link of the error message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClmServerMessageError

public ClmServerMessageError(java.lang.String message,
                             com.ibm.team.fvt.tests.web.WebBrowserElement element)

ClmServerMessageError

public ClmServerMessageError(java.lang.String message,
                             com.ibm.team.fvt.tests.web.WebBrowserElement element,
                             ClmWebPageDialog dialog)
Method Detail

getDetails

public java.lang.String getDetails()
Returns the error message details after having clicked on the 'show details' link of the error message.

Specified by:
getDetails in class com.ibm.team.fvt.tests.scenario.errors.ServerMessageError
Returns:
The server error message details as a String or null if there's no 'show details' link.

getSummary

public java.lang.String getSummary()
Returns the error message summary before having clicked on the 'show details' link of the error message.

Specified by:
getSummary in class com.ibm.team.fvt.tests.scenario.errors.ServerMessageError
Returns:
The server error message summary as a String.

cancel

public void cancel()
Cancels the dialog where the error msg is displayed.