UNPKG

605 BTypeScriptView Raw
1/**
2 * @author: Prachi Singh (prachi@hackcapital.com)
3 * @date: Tuesday, 23rd April 2019 10:55:23 am
4 * @lastModifiedBy: Prachi Singh (prachi@hackcapital.com)
5 * @lastModifiedTime: Monday, 26th August 2019 4:19:13 pm
6 *
7 * DESCRIPTION: This hook is used for error handling
8 *
9 * @copyright (c) 2019 Hack Capital
10 */
11import { ErrorTemplate } from '../errors/ErrorTemplate';
12/**
13 * Error hook to handle the errors
14 *
15 * @export
16 * @param {*} this
17 * @param {{ err: Error }} options
18 */
19export default function error(this: any, options: {
20 err: ErrorTemplate;
21 accessToken?: string;
22}): Promise<void>;