getFrom #
Available since 2.17.1
Get a standardized KuzzleError from an existing error to keep the stacktrace
Arguments #
getFrom (source: Error, domain: string, subDomain: string, name: string, placeholders: any[]): KuzzleError
Argument | Type | Description |
---|---|---|
source | Error | Original error |
domain | string | Domain name |
subDomain | string | Subdomain name |
name | string | Standard error name |
placeholders | any[] | Other placeholder arguments |
Edit this page on Github(opens new window)