package io.teiler.server.util;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.LinkedList;
import java.util.List;

/**
 * Error-Wrapper to smoothly getGroupById error-codes across the REST-API.
 *
 * @author lroellin
 */
public class Error {

    @Expose
    @SerializedName("error")
    private List<String> errorCodes = new LinkedList<>();

    public Error(String errorCode) {
        this.errorCodes.add(errorCode);
    }
}

@@ -188,10 +188,10 @@
 rror
--W
+ w
 rapp
@@ -212,24 +212,15 @@
  get
-GroupById
  error
--
+ 
 code
@@ -240,9 +240,9 @@
 REST
--
+ 
 API.

Fix runaway refactoring