
io.github.stewseo.client.transport.MissingRequiredPropertyException Maven / Gradle / Ivy
package io.github.stewseo.client.transport;
public class MissingRequiredPropertyException extends RuntimeException {
private final Class> clazz;
private final String property;
public MissingRequiredPropertyException(Object obj, String property) {
super("Missing required property '" + obj.getClass().getSimpleName() + "." + property + "'");
this.clazz = obj.getClass();
this.property = property;
}
/**
* The class where the missing property was found
*/
public Class> getObjectClass() {
return clazz;
}
public String getPropertyName() {
return property;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy