package com.github.sbouclier;

import java.util.ArrayList;
import java.util.List;

/**
 * Kraken API exception
 *
 * @author Stéphane Bouclier
 */
public class KrakenApiException extends Exception {

    List<String> errors = new ArrayList<>();

    public KrakenApiException(List<String> errors) {
        this.errors = errors;
    }

    public KrakenApiException(String message, Throwable cause) {
        super(message, cause);
        this.addError(message);
    }

    public void addError(String error) {
        this.errors.add(error);
    }

    public String getMessage() {
        return errors.toString();
    }
}

@@ -239,16 +239,99 @@
 t%3C%3E();%0A%0A
+    public KrakenApiException(String error) %7B%0A        this.addError(error);%0A    %7D%0A%0A
     publ

add one message error