com.bugsnag.Exception Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bugsnag Show documentation
Show all versions of bugsnag Show documentation
Official Bugsnag notifier for Java applications
package com.bugsnag;
import com.bugsnag.serialization.Expose;
import java.util.List;
class Exception {
private Configuration config;
private Throwable throwable;
Exception(Configuration config, Throwable throwable) {
this.config = config;
this.throwable = throwable;
}
@Expose
public String getErrorClass() {
return throwable.getClass().getName();
}
@Expose
public String getMessage() {
return throwable.getLocalizedMessage();
}
@Expose
public List getStacktrace() {
return Stackframe.getStacktrace(config, throwable.getStackTrace());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy