Handles application errors by automatically attaching to the model events and displaying errors when needed.
new sap.ui.documentation.sdk.controller.ErrorHandler(oComponent)
Param | Type | Default Value | Description |
---|---|---|---|
oComponent | sap.ui.core.UIComponent | reference to the app's component |
Method | Description |
---|---|
sap.ui.documentation.sdk.controller.ErrorHandler.extend |
Creates a new subclass of class sap.ui.documentation.sdk.controller.ErrorHandler with name
|
sap.ui.documentation.sdk.controller.ErrorHandler.getMetadata |
Returns a metadata object for class sap.ui.documentation.sdk.controller.ErrorHandler. |
Creates a new subclass of class sap.ui.documentation.sdk.controller.ErrorHandler with name sClassName
and enriches it with the information contained in oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.base.Object.extend.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |