'use strict' ; param { string } errorScope param { string } errorMessage returns { Error } export function createAskSdkError ( errorScope , errorMessage ) { const error = new Error ( errorMessage ) ; error . name = `AskSdk.${ errorScope } Error` ; return error ; } param packageVersion param customUserAgent export function createAskSdkUserAgent ( packageVersion , customUserAgent ? ) { const customUserAgentString = customUserAgent ? ( ` ${ customUserAgent }` ) : '' ; return `ask-node/${ packageVersion } Node/${ process . version }${ customUserAgentString }` ; }