com.artemis.InvalidComponentException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artemis-odb Show documentation
Show all versions of artemis-odb Show documentation
Fork of Artemis Entity System Framework.
package com.artemis;
import com.artemis.utils.reflect.ClassReflection;
@SuppressWarnings("serial")
public class InvalidComponentException extends RuntimeException {
private Class> componentClass;
public InvalidComponentException(Class> componentClass, String string) {
super(message(componentClass, string));
this.componentClass = componentClass;
}
public InvalidComponentException(Class> componentClass, String string, Exception e) {
super(message(componentClass, string), e);
this.componentClass = componentClass;
}
private static String message(Class> componentClass, String string) {
return ClassReflection.getSimpleName(componentClass) + ": " + string;
}
public Class> getComponentClass() {
return componentClass;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy