@euirim/microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
1 lines • 2.28 kB
Source Map (JSON)
{"version":3,"sources":["src/common/Error.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,qBAAa,iBAAkB,SAAQ,KAAK;IAExC;;;;;;OAMG;gBACgB,YAAY,EAAE,MAAM;CAK1C;AAED;;;;;;GAMG;AAEH,qBAAa,qBAAsB,SAAQ,KAAK;IAE5C;;;;;;OAMG;gBACgB,KAAK,EAAE,MAAM;CAKnC;AAED;;;;;;GAMG;AAEH,qBAAa,mBAAoB,SAAQ,KAAK;IAE1C;;;;;;;OAOG;gBACgB,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;CAKxD","file":"Error.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\n/**\n * The error that is thrown when an argument passed in is null.\n *\n * @export\n * @class ArgumentNullError\n * @extends {Error}\n */\nexport class ArgumentNullError extends Error {\n\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 public constructor(argumentName: string) {\n super(argumentName);\n this.name = \"ArgumentNull\";\n this.message = argumentName;\n }\n}\n\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 */\n// tslint:disable-next-line:max-classes-per-file\nexport class InvalidOperationError extends Error {\n\n /**\n * Creates an instance of InvalidOperationError.\n *\n * @param {string} error - The error\n *\n * @memberOf InvalidOperationError\n */\n public constructor(error: string) {\n super(error);\n this.name = \"InvalidOperation\";\n this.message = error;\n }\n}\n\n/**\n * The error that is thrown when an object is disposed.\n *\n * @export\n * @class ObjectDisposedError\n * @extends {Error}\n */\n// tslint:disable-next-line:max-classes-per-file\nexport class ObjectDisposedError extends Error {\n\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 public constructor(objectName: string, error?: string) {\n super(error);\n this.name = objectName + \"ObjectDisposed\";\n this.message = error;\n }\n}\n"]}