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