Home
last modified time | relevance | path

Searched refs:YError (Results 1 – 5 of 5) sorted by relevance

/third_party/node/deps/npm/node_modules/yargs/lib/
Dyerror.js2 function YError (msg) { class
5 Error.captureStackTrace(this, YError)
8 YError.prototype = Object.create(Error.prototype)
9 YError.prototype.constructor = YError
11 module.exports = YError
Dargsert.js6 const YError = require('./yerror') constant
28 …throw new YError(`Not enough arguments provided. Expected ${parsed.demanded.length} but received $…
33 …throw new YError(`Too many arguments provided. Expected max ${totalCommands} but received ${length…
67 …throw new YError(`Invalid ${positionName[position] || 'manyith'} argument. Expected ${allowedTypes…
Dapply-extends.js5 const YError = require('./yerror') constant
11 throw new YError(`Circular extended configurations: '${cfgPath}'.`)
Dusage.js9 const YError = require('./yerror') constant
60 err = err || new YError(msg)
/third_party/node/deps/npm/node_modules/yargs/
Dyargs.js15 const YError = require('./lib/yerror') constant
470 … throw new YError('.usage() description must start with $0 if being used as alias for .command()')
714 throw new YError(".positional() can only be called in a command's builder function")
1183 if (parsed.error) throw new YError(parsed.error.message)
1192 if (err instanceof YError) usage.fail(err.message, err)
1216 if (parseErrors) throw new YError(parseErrors.message || parseErrors)