avabrake.0.1.5.source-code.Airbrake Maven / Gradle / Ivy
package io.airbrake.javabrake;
import java.util.concurrent.Future;
/** Airbrake is a proxy class for default Notifier. */
public class Airbrake {
static Notifier notifier;
public static void setNotifier(Notifier notifier) {
Airbrake.notifier = notifier;
}
public static Future report(Throwable e) {
return notifier.report(e);
}
public static Future send(Notice notice) {
return notifier.send(notice);
}
public static Notice sendSync(Notice notice) {
return notifier.sendSync(notice);
}
public static Notice buildNotice(Throwable e) {
return notifier.buildNotice(e);
}
}