ibm_ilog.diagram.util.ErrorReporter (version 1.1-SNAPSHOT)
Object » ibm_ilog.diagram.util.ErrorReporter
Method Summary
- buildError(id)
- declareError(errorCode, id, descriptor) Error declaration helper
- error(id)
- getLocalizedString(id) Returns the localized string for the specified identifier.
- warn(id)
Attached Objects
Methods
Error declaration helper
Parameter | Type | Description |
---|---|---|
errorCode | String | The IBM standard error code. |
id | String | An alphabetic error name used to reference it from the code; making it more readable. |
descriptor | String|Array|Function | The error message or message generator. It can be three: * message itself (Non-I18Nized) * a function which handles the R.error() arguments directly * an array naming the arguments of the R.error() call; for which a function is built that calls dojo.string.substitute with these names for I18N. (We call this the standard descriptor) |
This function normally fetches the specified string (using the dojo.i18n API) from the package name "ibmilog.diagram" and the bundle name "ErrorReporter". On mobile platforms (that is, if dojo.config.diagramForMobile is true), dojo.i18n is not used (to reduce the size of downloaded code), so the id is returned unchanged. To localize messages on mobile, the application should replace this function (ibmilog.diagram.util.ErrorReporter.getLocalizedString) by a function that requests the localized string from the server.
Parameter | Type | Description |
---|---|---|
id |