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

org.babyfish.jimmer.client.meta.EnumBasedError Maven / Gradle / Ivy

There is a newer version: 0.9.35
Show newest version
package org.babyfish.jimmer.client.meta;

import java.util.Map;

public class EnumBasedError {

    private final Enum rawError;

    private final Map fields;

    public EnumBasedError(Enum rawError, Map fields) {
        this.rawError = rawError;
        this.fields = fields;
    }

    public Enum getRawError() {
        return rawError;
    }

    public Map getFields() {
        return fields;
    }

    @Override
    public String toString() {
        return "Error{" +
                "rawError=" + rawError +
                ", fields=" + fields +
                '}';
    }

    public static class Field {

        private final String name;

        private final Type type;

        public Field(String name, Type type) {
            this.name = name;
            this.type = type;
        }

        public String getName() {
            return name;
        }

        public Type getType() {
            return type;
        }

        @Override
        public String toString() {
            return "Field{" +
                    "name='" + name + '\'' +
                    ", type=" + type +
                    '}';
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy