
airbrake.SwitchBacktrace Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of airbrake-java Show documentation
Show all versions of airbrake-java Show documentation
This is the official library to notify exception to Airbrake.io
// Modified or written by Luca Marrocco for inclusion with airbrake.
// Copyright (c) 2009 Luca Marrocco.
// Licensed under the Apache License, Version 2.0 (the "License")
package airbrake;
public class SwitchBacktrace extends Backtrace {
private static final QuietRubyBacktrace QuietRubyBacktrace = new QuietRubyBacktrace();
private static final Backtrace Backtrace = new Backtrace();
private Backtrace backtrace = Backtrace;
@Override
public airbrake.Backtrace newBacktrace(final Throwable throwable) {
return backtrace.newBacktrace(throwable);
}
public void quiet() {
backtrace = QuietRubyBacktrace;
}
public void verbose() {
backtrace = Backtrace;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy