mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d7f5153cd8
Summary: Yesterday we shipped hermesengine.dev as part of the current 0.60 release. This PR brings those changes to master. ## Changelog [General] [Added] - Added support for Hermes Pull Request resolved: https://github.com/facebook/react-native/pull/25613 Test Plan: * CI is green both on GitHub and at FB * Creating a new app from source can use Hermes on Android Reviewed By: cpojer Differential Revision: D16221777 Pulled By: willholen fbshipit-source-id: aa6be10537863039cb666292465ba2e1d44b64ef
45 lines
1.2 KiB
C++
45 lines
1.2 KiB
C++
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include <stdexcept>
|
|
|
|
namespace facebook {
|
|
namespace hermes {
|
|
namespace inspector {
|
|
|
|
class AlreadyEnabledException : public std::runtime_error {
|
|
public:
|
|
AlreadyEnabledException()
|
|
: std::runtime_error("can't enable: debugger already enabled") {}
|
|
};
|
|
|
|
class NotEnabledException : public std::runtime_error {
|
|
public:
|
|
NotEnabledException(const std::string &cmd)
|
|
: std::runtime_error("debugger can't perform " + cmd + ": not enabled") {}
|
|
};
|
|
|
|
class InvalidStateException : public std::runtime_error {
|
|
public:
|
|
InvalidStateException(
|
|
const std::string &cmd,
|
|
const std::string &curState,
|
|
const std::string &expectedState)
|
|
: std::runtime_error(
|
|
"debugger can't perform " + cmd + ": in " + curState +
|
|
", expected " + expectedState) {}
|
|
};
|
|
|
|
class MultipleCommandsPendingException : public std::runtime_error {
|
|
public:
|
|
MultipleCommandsPendingException(const std::string &cmd)
|
|
: std::runtime_error(
|
|
"debugger can't perform " + cmd +
|
|
": a step or resume is already pending") {}
|
|
};
|
|
|
|
} // namespace inspector
|
|
} // namespace hermes
|
|
} // namespace facebook
|