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

com.codereligion.bugsnag.logback.model.ExceptionVO Maven / Gradle / Ivy

The newest version!
/**
 * Copyright 2014 www.codereligion.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.codereligion.bugsnag.logback.model;

import com.google.common.collect.Lists;
import java.util.List;

/**
 * Represents a bugsnag exception.
 *
 * @author Sebastian Gröbler
 */
public class ExceptionVO {

    /**
     * The class of error that occurred.
     */
    private String errorClass;

    /**
     * The error message associated with the error.
     */
    private String message;

    /**
     * A list of stack trace objects. Each object represents one line in
     * the exception's stack trace. bugsnag uses this information to help
     * with error grouping, as well as displaying it to the user.
     */
    private List stacktrace = Lists.newArrayList();

    public String getErrorClass() {
        return errorClass;
    }

    public void setErrorClass(final String errorClass) {
        this.errorClass = errorClass;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(final String message) {
        this.message = message;
    }

    public List getStackTrace() {
        return stacktrace;
    }

    public void addStackTrace(final List stackTrace) {
        this.stacktrace.addAll(stackTrace);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy