MCPcopy Create free account
hub / github.com/asm-js/validator / ValidationError

Function ValidationError

lib/fail.js:3–7  ·  view source on GitHub ↗
(message, stack)

Source from the content-addressed store, hash-verified

1var match = require('pattern-match');
2
3function ValidationError(message, stack) {
4 Error.call(this, message);
5 this.stack = stack;
6 this.message = message;
7}
8
9ValidationError.prototype = Object.create(Error.prototype);
10

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected