203161fe52a1b806e3991d3259d3d31482cab9434134764f8269883e2c3ec8ab.json 5.5 KB

1
  1. {"ast":null,"code":"\"use strict\";\n\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ObjectDisposedError = exports.InvalidOperationError = exports.ArgumentNullError = void 0;\n/* eslint-disable max-classes-per-file */\n/**\n * The error that is thrown when an argument passed in is null.\n *\n * @export\n * @class ArgumentNullError\n * @extends {Error}\n */\nclass ArgumentNullError extends Error {\n /**\n * Creates an instance of ArgumentNullError.\n *\n * @param {string} argumentName - Name of the argument that is null\n *\n * @memberOf ArgumentNullError\n */\n constructor(argumentName) {\n super(argumentName);\n this.name = \"ArgumentNull\";\n this.message = argumentName;\n }\n}\nexports.ArgumentNullError = ArgumentNullError;\n/**\n * The error that is thrown when an invalid operation is performed in the code.\n *\n * @export\n * @class InvalidOperationError\n * @extends {Error}\n */\nclass InvalidOperationError extends Error {\n /**\n * Creates an instance of InvalidOperationError.\n *\n * @param {string} error - The error\n *\n * @memberOf InvalidOperationError\n */\n constructor(error) {\n super(error);\n this.name = \"InvalidOperation\";\n this.message = error;\n }\n}\nexports.InvalidOperationError = InvalidOperationError;\n/**\n * The error that is thrown when an object is disposed.\n *\n * @export\n * @class ObjectDisposedError\n * @extends {Error}\n */\nclass ObjectDisposedError extends Error {\n /**\n * Creates an instance of ObjectDisposedError.\n *\n * @param {string} objectName - The object that is disposed\n * @param {string} error - The error\n *\n * @memberOf ObjectDisposedError\n */\n constructor(objectName, error) {\n super(error);\n this.name = objectName + \"ObjectDisposed\";\n this.message = error;\n }\n}\nexports.ObjectDisposedError = ObjectDisposedError;","map":{"version":3,"names":["Object","defineProperty","exports","value","ObjectDisposedError","InvalidOperationError","ArgumentNullError","Error","constructor","argumentName","name","message","error","objectName"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Error.js"],"sourcesContent":["\"use strict\";\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ObjectDisposedError = exports.InvalidOperationError = exports.ArgumentNullError = void 0;\n/* eslint-disable max-classes-per-file */\n/**\n * The error that is thrown when an argument passed in is null.\n *\n * @export\n * @class ArgumentNullError\n * @extends {Error}\n */\nclass ArgumentNullError extends Error {\n /**\n * Creates an instance of ArgumentNullError.\n *\n * @param {string} argumentName - Name of the argument that is null\n *\n * @memberOf ArgumentNullError\n */\n constructor(argumentName) {\n super(argumentName);\n this.name = \"ArgumentNull\";\n this.message = argumentName;\n }\n}\nexports.ArgumentNullError = ArgumentNullError;\n/**\n * The error that is thrown when an invalid operation is performed in the code.\n *\n * @export\n * @class InvalidOperationError\n * @extends {Error}\n */\nclass InvalidOperationError extends Error {\n /**\n * Creates an instance of InvalidOperationError.\n *\n * @param {string} error - The error\n *\n * @memberOf InvalidOperationError\n */\n constructor(error) {\n super(error);\n this.name = \"InvalidOperation\";\n this.message = error;\n }\n}\nexports.InvalidOperationError = InvalidOperationError;\n/**\n * The error that is thrown when an object is disposed.\n *\n * @export\n * @class ObjectDisposedError\n * @extends {Error}\n */\nclass ObjectDisposedError extends Error {\n /**\n * Creates an instance of ObjectDisposedError.\n *\n * @param {string} objectName - The object that is disposed\n * @param {string} error - The error\n *\n * @memberOf ObjectDisposedError\n */\n constructor(objectName, error) {\n super(error);\n this.name = objectName + \"ObjectDisposed\";\n this.message = error;\n }\n}\nexports.ObjectDisposedError = ObjectDisposedError;\n\n"],"mappings":"AAAA,YAAY;;AACZ;AACA;AACAA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,mBAAmB,GAAGF,OAAO,CAACG,qBAAqB,GAAGH,OAAO,CAACI,iBAAiB,GAAG,KAAK,CAAC;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,iBAAiB,SAASC,KAAK,CAAC;EAClC;AACJ;AACA;AACA;AACA;AACA;AACA;EACIC,WAAWA,CAACC,YAAY,EAAE;IACtB,KAAK,CAACA,YAAY,CAAC;IACnB,IAAI,CAACC,IAAI,GAAG,cAAc;IAC1B,IAAI,CAACC,OAAO,GAAGF,YAAY;EAC/B;AACJ;AACAP,OAAO,CAACI,iBAAiB,GAAGA,iBAAiB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMD,qBAAqB,SAASE,KAAK,CAAC;EACtC;AACJ;AACA;AACA;AACA;AACA;AACA;EACIC,WAAWA,CAACI,KAAK,EAAE;IACf,KAAK,CAACA,KAAK,CAAC;IACZ,IAAI,CAACF,IAAI,GAAG,kBAAkB;IAC9B,IAAI,CAACC,OAAO,GAAGC,KAAK;EACxB;AACJ;AACAV,OAAO,CAACG,qBAAqB,GAAGA,qBAAqB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMD,mBAAmB,SAASG,KAAK,CAAC;EACpC;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;EACIC,WAAWA,CAACK,UAAU,EAAED,KAAK,EAAE;IAC3B,KAAK,CAACA,KAAK,CAAC;IACZ,IAAI,CAACF,IAAI,GAAGG,UAAU,GAAG,gBAAgB;IACzC,IAAI,CAACF,OAAO,GAAGC,KAAK;EACxB;AACJ;AACAV,OAAO,CAACE,mBAAmB,GAAGA,mBAAmB","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}