close

Filter

loading table of contents...

Studio Developer Manual / Version 2010

Table Of Contents

7.24.2.3 Error handling

Feedback Hub offers the possibility to send error codes and arguments to the client, where they can be localized to error messages (please see Section 7.24.2.2, “Localization”). The arguments are of Type String and provide the possibility to create dynamic error messages. In the implementations of the FeedbackHubAdapterFactory and the FeedbackHubAdapter, errors that should result in a specific error message to the client need to be wrapped into a FeedbackHubException, with a specific FeedbackHubErrorCode and an optional list of arguments. This exception will be caught by the framework and the code will be passed to the client.

Note

Note

If errors occur which result in an exception not of Type FeedbackHubException they will be caught by the framework and delivered to the client with a general error message.

In your FeedbackHubCustom you need to use the following naming pattern in order to localize the error messages: feedbackItemPanel_error_<Implementation_of_FeedbackHubErrorCode_Classname>_<ErrorCode_of_CustomFeedbackHubErrorCode_Implementation>. If you have for example a CustomFeedbackHubErrorCode Enum which is implementing FeedbackHubErrorCode with the value ERROR_CUSTOM the localization would be: feedbackItemPanel_error_CustomFeedbackHubErrorCode_ERROR_CUSTOM

Within the localization value you can use placeholders like {0}, {1} etc. that are filled with the arguments that were passed to the FeedbackHubException. The arguments occur in the same order as they were passed to the exception.

Note

Note

The first argument is always the ID of the binding. It is set by the framework and can be referenced with {0}!

An error appears in the Feedback Hub window in a red NagBar at the bottom of the Window. (Error Appearance is shown inSection 4.7.8, “Getting Keyword Recommendations” in Studio User Manual)

Search Results

Table Of Contents