List of usage examples for com.facebook.react.bridge JSApplicationCausedNativeException JSApplicationCausedNativeException
public JSApplicationCausedNativeException(String detailMessage)
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); }