mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 09:35:48 +00:00
12535ae69d
Reviewed By: smeenai Differential Revision: D7326765 fbshipit-source-id: 9df477dfa89812e05e79b5e6d510bcbbc793381c
27 lines
637 B
C++
27 lines
637 B
C++
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#include <exception>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
/**
|
|
* An abstract class for C++-based exception handling that differentiates
|
|
* soft exceptions from fatal exceptions.
|
|
*/
|
|
class ExceptionManager {
|
|
public:
|
|
virtual ~ExceptionManager() = default;
|
|
|
|
virtual void handleSoftException(const std::exception &e) const = 0;
|
|
virtual void handleFatalException(const std::exception &e) const = 0;
|
|
};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|