microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
53 lines (52 loc) • 1.29 kB
TypeScript
/**
* The error that is thrown when an argument passed in is null.
*
* @export
* @class ArgumentNullError
* @extends {Error}
*/
export declare class ArgumentNullError extends Error {
/**
* Creates an instance of ArgumentNullError.
*
* @param {string} argumentName - Name of the argument that is null
*
* @memberOf ArgumentNullError
*/
constructor(argumentName: string);
}
/**
* The error that is thrown when an invalid operation is performed in the code.
*
* @export
* @class InvalidOperationError
* @extends {Error}
*/
export declare class InvalidOperationError extends Error {
/**
* Creates an instance of InvalidOperationError.
*
* @param {string} error - The error
*
* @memberOf InvalidOperationError
*/
constructor(error: string);
}
/**
* The error that is thrown when an object is disposed.
*
* @export
* @class ObjectDisposedError
* @extends {Error}
*/
export declare class ObjectDisposedError extends Error {
/**
* Creates an instance of ObjectDisposedError.
*
* @param {string} objectName - The object that is disposed
* @param {string} error - The error
*
* @memberOf ObjectDisposedError
*/
constructor(objectName: string, error?: string);
}