Code example for Thread.UncaughtExceptionHandler

Methods: uncaughtException

0
            defaultExceptionHandler = defaultExceptionHandlerIn;
        } 
 
        public void uncaughtException(Thread t, Throwable e) {
            AirbrakeNotifier.notify(e);
            defaultExceptionHandler.uncaughtException(t, e);
        } 
    } 
 
    // Register to send exceptions to airbrake 
    public static void register(Context context, String apiKey) {
        register(context, apiKey, ENVIRONMENT_DEFAULT, true);
    } 
 
    public static void register(Context context, String apiKey, String environmentName) {
        register(context, apiKey, environmentName, true);
    } 
 
    public static void register(Context context, String apiKey, String environmentName, boolean notifyOnlyProduction) {
        // Require an airbrake api key 
        if(apiKey != null) {