UNPKG

654 BTypeScriptView Raw
1/**
2 * @module botbuilder
3 */
4/**
5 * Copyright (c) Microsoft Corporation. All rights reserved.
6 * Licensed under the MIT License.
7 */
8import { StatusCodes } from 'botbuilder-core';
9/**
10 * Extends Error to provide specialized error messages.
11 */
12export declare class StatusCodeError extends Error {
13 readonly statusCode: StatusCodes;
14 /**
15 * Creates a new instance of the [StatusCodeError](xref:botbuilder.StatusCodeError) class.
16 *
17 * @param statusCode The status code.
18 * @param message Optional. The error message.
19 */
20 constructor(statusCode: StatusCodes, message?: string);
21}
22//# sourceMappingURL=statusCodeError.d.ts.map
\No newline at end of file