Core
Framework v2.x
2

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
ArgumentTypeDescription
source
Error
Original error
domain
string
Domain name
subDomain
string
Subdomain name
name
string
Standard error name
placeholders
any[]
Other placeholder arguments