mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-05-12 17:58:40 +08:00
[js][functions] misc HttpsError
This commit is contained in:
11
lib/modules/functions/HttpsError.js
Normal file
11
lib/modules/functions/HttpsError.js
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user