IBM ILOG Dojo Diagrammer 1.1 API Documentation
Legend: Array Boolean Constructor Date DomNode Error Function Namespace Number Object RegExp Singleton String

ibm_ilog.diagram.util.ErrorReporter

Object » ibm_ilog.diagram.util.ErrorReporter

Method Summary

Attached Objects

Methods

buildError
ParameterTypeDescription
id
declareError
Error declaration helper
ParameterTypeDescription
errorCodeStringThe IBM standard error code.
idStringAn alphabetic error name used to reference it from the code; making it more readable.
descriptorString|Array|FunctionThe 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)
error
ParameterTypeDescription
id
getLocalizedString

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.

ParameterTypeDescription
id
warn
ParameterTypeDescription
id