Searched refs:YError (Results 1 – 5 of 5) sorted by relevance
2 function YError (msg) { class5 Error.captureStackTrace(this, YError)8 YError.prototype = Object.create(Error.prototype)9 YError.prototype.constructor = YError11 module.exports = YError
6 const YError = require('./yerror') constant28 …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…
5 const YError = require('./yerror') constant11 throw new YError(`Circular extended configurations: '${cfgPath}'.`)
9 const YError = require('./yerror') constant60 err = err || new YError(msg)
15 const YError = require('./lib/yerror') constant470 … 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)