Event implements JsonStream.Streamable, MetadataAware, UserAware { public boolean isUnhandled() { return impl.isUnhandled(); } Event(@Nullable Throwable originalError,
          @NonNull ImmutableConfig config,
          @NonNull HandledState handledState,
          @NonNull Logger logger);   Event(@Nullable Throwable originalError,
          @NonNull ImmutableConfig config,
          @NonNull HandledState handledState,
          @NonNull Metadata metadata,
          @NonNull Logger logger);   Event(@NonNull EventInternal impl, @NonNull Logger logger); @Nullable Throwable getOriginalError(); @NonNull List<Error> getErrors(); @NonNull List<Thread> getThreads(); @NonNull List<Breadcrumb> getBreadcrumbs(); @NonNull AppWithState getApp(); @NonNull DeviceWithState getDevice(); void setApiKey(@NonNull String apiKey); @NonNull String getApiKey(); void setSeverity(@NonNull Severity severity); @NonNull Severity getSeverity(); void setGroupingHash(@Nullable String groupingHash); @Nullable String getGroupingHash(); void setContext(@Nullable String context); @Nullable String getContext(); @Override void setUser(@Nullable String id, @Nullable String email, @Nullable String name); @Override @NonNull User getUser(); @Override void addMetadata(@NonNull String section, @NonNull Map<String, ?> value); @Override void addMetadata(@NonNull String section, @NonNull String key, @Nullable Object value); @Override void clearMetadata(@NonNull String section); @Override void clearMetadata(@NonNull String section, @NonNull String key); @Override @Nullable Map<String, Object> getMetadata(@NonNull String section); @Override @Nullable Object getMetadata(@NonNull String section, @NonNull String key); @Override void toStream(@NonNull JsonStream stream); boolean isUnhandled();  }
@Test public void testIsUnhandled() { final Event logEvent = new Event(testException, config, HandledState.newInstance(HandledState.REASON_LOG), NoopLogger.INSTANCE); final Event anrEvent = new Event(testException, config, HandledState.newInstance(HandledState.REASON_ANR), NoopLogger.INSTANCE); final Event handledEvent = new Event(testException, config, HandledState.newInstance(HandledState.REASON_HANDLED_EXCEPTION), NoopLogger.INSTANCE); final Event rejectionEvent = new Event(testException, config, HandledState.newInstance(HandledState.REASON_PROMISE_REJECTION), NoopLogger.INSTANCE); final Event strictEvent = new Event(testException, config, HandledState.newInstance(HandledState.REASON_STRICT_MODE, Severity.WARNING, "Hello"), NoopLogger.INSTANCE); final Event unhandledEvent = new Event(testException, config, HandledState.newInstance(HandledState.REASON_UNHANDLED_EXCEPTION), NoopLogger.INSTANCE); final Event userEvent = new Event(testException, config, HandledState.newInstance(HandledState.REASON_USER_SPECIFIED), NoopLogger.INSTANCE); final Event callbackEvent = new Event(testException, config, HandledState.newInstance(HandledState.REASON_CALLBACK_SPECIFIED), NoopLogger.INSTANCE); assertFalse(logEvent.isUnhandled()); assertTrue(anrEvent.isUnhandled()); assertFalse(handledEvent.isUnhandled()); assertTrue(rejectionEvent.isUnhandled()); assertTrue(strictEvent.isUnhandled()); assertTrue(unhandledEvent.isUnhandled()); assertFalse(userEvent.isUnhandled()); assertFalse(callbackEvent.isUnhandled()); }