• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.google.android.enterprise.connectedapps.annotations;
2 
3 /** Determines what to do when a cross-profile method has an uncaught exception. */
4 public enum UncaughtExceptionsPolicy {
5   /** Notify the caller about the uncaught exception, then rethrow it. */
6   NOTIFY_RETHROW(/* rethrowExceptions= */ true),
7   /** Notify the caller about the uncaught exception, then suppress it. */
8   NOTIFY_SUPPRESS(/* rethrowExceptions= */ false);
9 
10   public final boolean rethrowExceptions;
11 
UncaughtExceptionsPolicy(boolean rethrowExceptions)12   UncaughtExceptionsPolicy(boolean rethrowExceptions) {
13     this.rethrowExceptions = rethrowExceptions;
14   }
15 }
16