opskins-trade-interface
Version:
trade.opskins.com API interface
18 lines (14 loc) • 368 B
JavaScript
class Invalid extends Error {
constructor(...args) {
if(!args.length) return
if(args.length == 1) {
super(`parameter is invalid: ${args[0]}`)
} else {
super(`parameters are invalid: ${args}`)
}
this.name = 'Invalid parameter'
this.param = args
Error.captureStackTrace(this, this.constructor)
}
}
module.exports = Invalid