aimpress-chatbot/node_modules/botbuilder-core/lib/invokeException.d.ts
“SamoilenkoVadym” 55445dbc86
Some checks failed
Build and deploy Node.js app to Azure Web App - ChatBot2222 / build (push) Has been cancelled
Build and deploy Node.js app to Azure Web App - ChatBot2222 / deploy (push) Has been cancelled
Deploy bot to Azure
2025-04-27 19:55:19 +01:00

21 lines
No EOL
843 B
TypeScript

import { StatusCodes } from 'botframework-schema';
import { InvokeResponse } from './invokeResponse';
/**
* A custom exception for invoke response errors.
*/
export declare class InvokeException<T = unknown> extends Error {
private readonly status;
private readonly response?;
/**
* @param status The Http status code of the error.
* @param response optional. The body of the exception. Default is null.
*/
constructor(status: StatusCodes, response?: T);
/**
* A factory method that creates a new [InvokeResponse](xref:botbuilder-core.InvokeResponse) object with the status code and body of the current object.
*
* @returns A new [InvokeResponse](xref:botbuilder-core.InvokeResponse) object.
*/
createInvokeResponse(): InvokeResponse;
}
//# sourceMappingURL=invokeException.d.ts.map