mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-01-11 13:28:40 +00:00
1 line
1.5 KiB
JavaScript
1 line
1.5 KiB
JavaScript
function t(t,r){void 0===r&&(r=t.constructor);var e=Error.captureStackTrace;e&&e(t,r)}var r,e=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),o=function(r){function o(e,o){var n,c,a,i=this.constructor,u=r.call(this,e,o)||this;return Object.defineProperty(u,"name",{value:i.name,enumerable:!1,configurable:!0}),n=u,c=i.prototype,(a=Object.setPrototypeOf)?a(n,c):n.__proto__=c,t(u),u}return e(o,r),o}(Error);function n(r,e){function o(){for(var n=[],c=0;c<arguments.length;c++)n[c]=arguments[c];if(!(this instanceof o))return new(o.bind.apply(o,function(t,r,e){if(e||2===arguments.length)for(var o,n=0,c=r.length;n<c;n++)!o&&n in r||(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return t.concat(o||Array.prototype.slice.call(r))}([void 0],n,!1)));e.apply(this,n),Object.defineProperty(this,"name",{value:r.name||e.name,enumerable:!1,configurable:!0}),r.apply(this,n),t(this,o)}return void 0===e&&(e=Error),Object.defineProperties(o,{prototype:{value:Object.create(e.prototype,{constructor:{value:o,writable:!0,configurable:!0}})}})}export{o as CustomError,n as customErrorFactory};export default null; |