All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bugsnag.Exception Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
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