12 lines
303 B
JavaScript
12 lines
303 B
JavaScript
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;
|
|
}
|
|
}
|