[js][functions] misc HttpsError

This commit is contained in:
Salakar
2018-05-06 13:50:39 +01:00
parent 73d915f192
commit d26f7a17ad
2 changed files with 21 additions and 13 deletions

View File

@@ -0,0 +1,11 @@
import type { FunctionsErrorCode } from './types.flow';
export default class HttpsError extends Error {
+details: ?any;
+code: FunctionsErrorCode;
constructor(code: FunctionsErrorCode, message?: string, details?: any) {
super(message);
this.details = details;
this.code = code;
}
}