flying-squid
Version:
A minecraft server written in node.js
18 lines (15 loc) • 356 B
JavaScript
class ExtendableError extends Error {
constructor (message) {
super(message)
this.name = this.constructor.name
this.message = message
Error.captureStackTrace(this, this.constructor.name)
}
}
class UserError extends ExtendableError {
constructor (message) {
super(message)
this.userError = 1
}
}
module.exports = UserError