@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
24 lines (23 loc) • 638 B
TypeScript
/**
* The internal exception from the framework
*
* It's used to signal to the outside world that
* a _known_ exception has happened during the execution
* of the apps.
*
* It's the base exception for other known classes
* such as UserNotAllowedException, which is used
* to inform the host that an app identified
* that a user cannot perform some action, e.g.
* join a room
*/
export declare class AppsEngineException extends Error {
name: string;
static JSONRPC_ERROR_CODE: number;
message: string;
constructor(message?: string);
getErrorInfo(): {
name: string;
message: string;
};
}