mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
c83aeaaf82
Summary: Trivial. Those nits prevent cause compilation errors in some configurations. Reviewed By: fkgozali Differential Revision: D7467794 fbshipit-source-id: cbda285748374fd941a0b1ca6718d702ca2d6d82
29 lines
651 B
C++
29 lines
651 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.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#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
|