Migrate ErrorReporter
Summary: _typescript_ Reviewed By: jknoxville Differential Revision: D16648552 fbshipit-source-id: 969c549594d76dca6552338a25f6ab7d8047d14d
This commit is contained in:
committed by
Facebook Github Bot
parent
fc0966a133
commit
a314d1d930
26
src/fb-stubs/ErrorReporter.tsx
Normal file
26
src/fb-stubs/ErrorReporter.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* Copyright 2018-present Facebook.
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
* @format
|
||||
*/
|
||||
|
||||
/*
|
||||
* This class exists to allow error reporting to your own service.
|
||||
* The recommended way to use this, is to instantiate it inside Logger,
|
||||
* so that all logged errors get reported to this class.
|
||||
*/
|
||||
export function cleanStack(stack: string, loc?: string) {}
|
||||
import {ScribeLogger} from './ScribeLogger';
|
||||
|
||||
export type ObjectError =
|
||||
| Error
|
||||
| {
|
||||
message: string,
|
||||
stack?: string,
|
||||
};
|
||||
|
||||
export default class ErrorReporter {
|
||||
constructor(scribeLogger: ScribeLogger) {}
|
||||
report(err: ObjectError) {}
|
||||
}
|
||||
Reference in New Issue
Block a user