@cto.ai/ops
Version:
💻 CTO.ai Ops - The CLI built for Teams 🚀
23 lines (22 loc) • 605 B
TypeScript
/**
* @author: Prachi Singh (prachi@hackcapital.com)
* @date: Tuesday, 23rd April 2019 10:55:23 am
* @lastModifiedBy: Prachi Singh (prachi@hackcapital.com)
* @lastModifiedTime: Monday, 26th August 2019 4:19:13 pm
*
* DESCRIPTION: This hook is used for error handling
*
* @copyright (c) 2019 Hack Capital
*/
import { ErrorTemplate } from '../errors/ErrorTemplate';
/**
* Error hook to handle the errors
*
* @export
* @param {*} this
* @param {{ err: Error }} options
*/
export default function error(this: any, options: {
err: ErrorTemplate;
accessToken?: string;
}): Promise<void>;