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

org.babyfish.jimmer.UnloadedException Maven / Gradle / Ivy

There is a newer version: 0.8.177
Show newest version
package org.babyfish.jimmer;

/**
 * When get the property value of immutable object,
 * if the property is not loaded, this exception will be thrown.
 */
public class UnloadedException extends RuntimeException {

    private final Class type;

    private final String prop;

    public UnloadedException(Class type, String prop) {
        super(
                String.format(
                        "The property \"%s.%s\" is unloaded",
                        type.getName(),
                        prop
                )
        );
        this.type = type;
        this.prop = prop;
    }

    public Class getType() {
        return type;
    }

    public String getProp() {
        return prop;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy