botbuilder-dialogs
Version:
A dialog stack based conversation manager for Microsoft BotBuilder.
28 lines • 913 B
TypeScript
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { DialogContext } from './dialogContext';
import { DialogInstance } from './dialog';
/**
* An Error that includes extra dialog context, including the dialog stack.
*/
export declare class DialogContextError extends Error {
readonly error: Error | string;
/**
* Represents the state of a dialog when an error occurred.
*/
readonly dialogContext: {
activeDialog?: string;
parent?: string;
stack: DialogInstance[];
};
/**
* Construct a DialogError.
*
* @param {Error | string} error Source error or error message.
* @param {DialogContext} dialogContext Dialog context that is the source of the error.
*/
constructor(error: Error | string, dialogContext: DialogContext);
}
//# sourceMappingURL=dialogContextError.d.ts.map