Defining the user interface for an error handler
After you create a new type of error, you must define the user interface for the error handler. If you do not define a user interface, the error handler is not available in the test editor or schedule editor.
To define the user interface for a new error handler, use the com.ibm.rational.test.common.editor.framework.exceptionDefinition extension point.
The creator class can implement the com.ibm.rational.common.test.editor.framework.extensions.IExceptionCreator class or extend the com.ibm.rational.common.test.editor.framework.extensions.DefaultExceptionCreator class. The com.ibm.rational.common.test.editor.framework.extensions.DefaultExceptionCreator class provides a default implementation of the IExceptionCreator element, which uses the isMyType(CBErrorType exceptionType) method.
The following is an example definition using HTTP:
<extension point="com.ibm.rational.test.common.editor.framework.exceptionDefinition">
<exceptionTypeDefinition
creatorClass="com.ibm.rational.test.lt.http.editor.PageTitleErrorExceptionCreator"
defaultBehavior="0"
defaultMessage="%PageTitle.Vp.Failed"
forFeature="com.ibm.rational.test.lt.feature.http"
labelProvider="com.ibm.rational.test.lt.http.editor.ui.exceptions.PageTitleVpErrorLabelProvider">
</exceptionTypeDefinition>
<exceptionTypeDefinition
creatorClass="com.ibm.rational.test.lt.http.editor.ResponseCodeVpErrorCreator"
defaultBehavior="0"
defaultMessage="%Resp.Code.Vp.Failed"
forFeature="com.ibm.rational.test.lt.feature.http"
labelProvider="com.ibm.rational.test.lt.http.editor.ui.exceptions.ResponseCodeVpErrorLabelProvider">
</exceptionTypeDefinition>
<exceptionTypeDefinition
creatorClass="com.ibm.rational.test.lt.http.editor.ResponseSizeVpErrorCreator"
defaultBehavior="0"
defaultMessage="%Resp.Size.Vp.Failed"
forFeature="com.ibm.rational.test.lt.feature.http"
labelProvider="com.ibm.rational.test.lt.http.editor.ui.exceptions.RespSizeVpErrorLabelProvider">
</exceptionTypeDefinition>
</extension>
You must specify the feature ID when you define the user interface for an error handler. By specifying the feature ID, the test editor can find the new types of errors and to filter out error types that are not applicable in multiprotocol tests.