org.babyfish.jimmer.client.meta.EnumBasedError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jimmer-client Show documentation
Show all versions of jimmer-client Show documentation
A revolutionary ORM framework for both java and kotlin
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