Example usage for com.facebook.react.bridge JSApplicationCausedNativeException JSApplicationCausedNativeException

List of usage examples for com.facebook.react.bridge JSApplicationCausedNativeException JSApplicationCausedNativeException

Introduction

In this page you can find the example usage for com.facebook.react.bridge JSApplicationCausedNativeException JSApplicationCausedNativeException.

Prototype

public JSApplicationCausedNativeException(String detailMessage) 

Source Link

Usage

From source file:com.facebook.catalyst.uimanager.debug.DebugComponentOwnershipModule.java

License:Open Source License

@ReactMethod
public synchronized void receiveOwnershipHierarchy(int requestId, int tag, @Nullable ReadableArray owners) {
    OwnerHierarchyCallback callback = mRequestIdToCallback.get(requestId);
    if (callback == null) {
        throw new JSApplicationCausedNativeException(
                "Got receiveOwnershipHierarchy for invalid request id: " + requestId);
    }/* w  w w .j  a  va  2s  . c  o m*/
    mRequestIdToCallback.delete(requestId);
    callback.onOwnerHierarchyLoaded(tag, owners);
}