Files
react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactNoCrashBridgeNotAllowedSoftException.java
T
Paige Sun f9fa385eb1 Log softerror when attempting to use ReactInstanceManager in Bridgeless Mode
Summary: Changelog: [Internal]

Reviewed By: fkgozali

Differential Revision: D34060026

fbshipit-source-id: 41441c0b16c4ef0248957eae11d9c9bc642f6d34
2022-02-10 15:00:50 -08:00

28 lines
838 B
Java

/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.bridge;
/**
* Extends RuntimeException so that it may be caught by a {@link ReactSoftExceptionListener}. Any
* {@link ReactSoftExceptionListener} that catches a ReactNoCrashBridgeNotAllowedSoftException
* should log it only and not crash, no matter what.
*/
public class ReactNoCrashBridgeNotAllowedSoftException extends ReactNoCrashSoftException {
public ReactNoCrashBridgeNotAllowedSoftException(String m) {
super(m);
}
public ReactNoCrashBridgeNotAllowedSoftException(Throwable e) {
super(e);
}
public ReactNoCrashBridgeNotAllowedSoftException(String m, Throwable e) {
super(m, e);
}
}