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

com.github.dekobon.domain.ErrorDetail Maven / Gradle / Ivy

package com.github.dekobon.domain;

import java.util.List;
import java.util.Map;
import java.util.Objects;

/**
 * @author Elijah Zupancic
 * @since 1.0.0
 */
public class ErrorDetail {
    private String code;
    private String message;
    private List> errors;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public List> getErrors() {
        return errors;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ErrorDetail that = (ErrorDetail) o;
        return Objects.equals(code, that.code) &&
                Objects.equals(message, that.message) &&
                Objects.equals(errors, that.errors);
    }

    @Override
    public int hashCode() {
        return Objects.hash(code, message, errors);
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ErrorDetail{");
        sb.append("code='").append(code).append('\'');
        sb.append(", message='").append(message).append('\'');
        sb.append(", errors=").append(errors);
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy