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: unknown[]): KuzzleError
ArgumentTypeDescription
source
Error
Original error
domain
string
Domain name
subDomain
string
Subdomain name
name
string
Standard error name
placeholders
unknown[]
Other arguments, used to fill the placeholders of the error message (rest parameter)