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

cz.active24.client.fred.exception.ServerResponseException Maven / Gradle / Ivy

There is a newer version: 2.50
Show newest version
package cz.active24.client.fred.exception;

import cz.active24.client.fred.eppclient.ErrorResponse;

import java.util.List;

/**
 *  Exception is thrown when server returns error.
 */
public class ServerResponseException extends FredClientException {

    private List errors;

    public ServerResponseException(List errors) {
        super("Server returned error!");
        this.errors = errors;
    }

    public List getErrors() {
        return errors;
    }

    public void setErrors(List errors) {
        this.errors = errors;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Server returned error! ");
        sb.append("Errors=").append(errors);
        return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy