-
public final class ErrorTypes
-
-
Field Summary
Fields Modifier and Type Field Description private Booleananrsprivate BooleanndkCrashesprivate BooleanunhandledExceptionsprivate BooleanunhandledRejections
-
Constructor Summary
Constructors Constructor Description ErrorTypes(Boolean anrs, Boolean ndkCrashes, Boolean unhandledExceptions, Boolean unhandledRejections)
-
Method Summary
Modifier and Type Method Description final BooleangetAnrs()Sets whether ANRs should be reported to Bugsnag. final UnitsetAnrs(Boolean anrs)Sets whether ANRs should be reported to Bugsnag. final BooleangetNdkCrashes()Determines whether NDK crashes such as signals and exceptions should be reported by bugsnag. final UnitsetNdkCrashes(Boolean ndkCrashes)Determines whether NDK crashes such as signals and exceptions should be reported by bugsnag. final BooleangetUnhandledExceptions()Sets whether Bugsnag should automatically capture and report unhandled errors. final UnitsetUnhandledExceptions(Boolean unhandledExceptions)Sets whether Bugsnag should automatically capture and report unhandled errors. final BooleangetUnhandledRejections()Sets whether Bugsnag should automatically capture and report unhandled promise rejections. final UnitsetUnhandledRejections(Boolean unhandledRejections)Sets whether Bugsnag should automatically capture and report unhandled promise rejections. Booleanequals(Object other)IntegerhashCode()-
-
Method Detail
-
getAnrs
final Boolean getAnrs()
Sets whether ANRs should be reported to Bugsnag.
If you wish to disable ANR detection, you should set this property to false.
-
setAnrs
final Unit setAnrs(Boolean anrs)
Sets whether ANRs should be reported to Bugsnag.
If you wish to disable ANR detection, you should set this property to false.
-
getNdkCrashes
final Boolean getNdkCrashes()
Determines whether NDK crashes such as signals and exceptions should be reported by bugsnag.
This flag is true by default.
-
setNdkCrashes
final Unit setNdkCrashes(Boolean ndkCrashes)
Determines whether NDK crashes such as signals and exceptions should be reported by bugsnag.
This flag is true by default.
-
getUnhandledExceptions
final Boolean getUnhandledExceptions()
Sets whether Bugsnag should automatically capture and report unhandled errors. By default, this value is true.
-
setUnhandledExceptions
final Unit setUnhandledExceptions(Boolean unhandledExceptions)
Sets whether Bugsnag should automatically capture and report unhandled errors. By default, this value is true.
-
getUnhandledRejections
final Boolean getUnhandledRejections()
Sets whether Bugsnag should automatically capture and report unhandled promise rejections. This only applies to React Native apps. By default, this value is true.
-
setUnhandledRejections
final Unit setUnhandledRejections(Boolean unhandledRejections)
Sets whether Bugsnag should automatically capture and report unhandled promise rejections. This only applies to React Native apps. By default, this value is true.
-
-
-
-