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

org.redmine.ta.RedmineException Maven / Gradle / Ivy

Go to download

Free open-source Java API for Redmine and Chiliproject bug/task management systems.

There is a newer version: 1.10.0
Show newest version
package org.redmine.ta;

import java.util.List;

public class RedmineException extends Exception {
    private List errors;
    private String text = "";

    // TODO Refactor this to get rid of adding "\n".
    // it should be up to the UI layer how to format all this
    public RedmineException(List errors) {
        this.errors = errors;
        for (String s : errors) {
            text += s + "\n";
        }
    }

    private static final long serialVersionUID = 1L;

    public List getErrors() {
        return errors;
    }

    @Override
    public String getMessage() {
        return text;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy