Constructor
new (require("nmodule/js/rc/errors/LocalizableError"))(params)
- Description:
Creates a LocalizableError
- Source:
- Since:
- Niagara 4.14
Extends:
- Error
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
String | Object | either an error message as a string or an object that contains Properties
|
Extends
- Error
Methods
toMessage() → {Promise.<String>}
- Description:
Resolves the message for the error
- Source:
Returns:
- Type
- Promise.<String>
toStack() → {Promise.<string>}
- Description:
Resolves to a formatted string that holds the error stack
- Source:
Returns:
- Type
- Promise.<string>
toSummaryMessage() → {Promise.<String>}
- Description:
Resolves the message summary for the error
- Source:
Returns:
- Type
- Promise.<String>
toTitle() → {Promise.<String>}
- Description:
Resolves the title for the error
- Source:
Returns:
- Type
- Promise.<String>