Current section

Files

Jump to
elixir_script priv javascript lib funcy match_error.js
Raw

priv/javascript/lib/funcy/match_error.js

function MatchError(message) {
this.name = 'MatchError';
this.message = message || 'No match for arguments given';
this.stack = (new Error()).stack;
}
MatchError.prototype = Object.create(Error.prototype);
MatchError.prototype.constructor = MatchError;
export default MatchError;