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

com.taskadapter.redmineapi.RedmineProcessingException Maven / Gradle / Ivy

Go to download

Free open-source Java API for Redmine and Chiliproject bug/task management systems. This project was originally a part of Task Adapter application (http://www.taskadapter.com) and then was open-sourced.

The newest version!
package com.taskadapter.redmineapi;

import java.util.List;

public class RedmineProcessingException extends RedmineException {
    private static final long serialVersionUID = 1L;

    private final 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 RedmineProcessingException(List errors) {
        this.errors = errors;
        final StringBuilder builder = new StringBuilder();
        for (String s : errors) {
            builder.append(s);
            builder.append("\n");
        }
        this.text = builder.toString();
    }

    public List getErrors() {
        return errors;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy