UNPKG

generaltranslation

Version:

A language toolkit for AI developers

3 lines (2 loc) 817 B
"use strict";var t=function(r,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},t(r,o)};"function"==typeof SuppressedError&&SuppressedError;var r=function(r){function o(t,o,e){var n=r.call(this,t)||this;return n.name="ApiError",n.code=o,n.message=e,n}return function(r,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function e(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}(o,r),o.prototype.getCode=function(){return this.code},o.prototype.getMessage=function(){return this.message},o}(Error);exports.ApiError=r; //# sourceMappingURL=errors.cjs.min.cjs.map