Core
Framework v2.x
2

getFrom #

Available since 2.17.1

Get a standardized KuzzleError from an existing error to keep the stacktrace

Arguments #

Copied to clipboard!
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