UNPKG

validate-reql

Version:

allows validation of rethinkdb reql queries using a whitelist of reql validators. this was specifically designed to work w/ rethinkdb-primus.

11 lines (8 loc) 251 B
module.exports = UnexpectedError function UnexpectedError (message, data) { Error.call(this, message) this.message = message this.data = data Error.captureStackTrace(this, this.constructor) } require('util').inherits(UnexpectedError, Error)