UNPKG

webgme-engine

Version:

WebGME server and Client API without a GUI

24 lines (19 loc) 700 B
/*globals define*/ /*eslint-env node, browser*/ /** * CoreIllegalArgumentError should be thrown if the type of the input parameters is not what it should be. * @author kecso / https://github.com/kecso */ define([], function () { 'use strict'; function CoreIllegalArgumentError() { var error = Error.apply(this, arguments); error.name = this.name = 'CoreIllegalArgumentError'; this.message = error.message; this.stack = error.stack; return error; } CoreIllegalArgumentError.prototype = Object.create(Error.prototype); CoreIllegalArgumentError.prototype.constructor = CoreIllegalArgumentError; return CoreIllegalArgumentError; });