io.vertx.codetrans.CodeModel Maven / Gradle / Ivy
package io.vertx.codetrans;
/**
* @author Julien Viet
*/
public class CodeModel {
private final Exception where;
public CodeModel() {
this.where = new Exception() {
};
}
public void render(CodeWriter writer) {
UnsupportedOperationException e = new UnsupportedOperationException(getClass().getName() + " has not implemented this method");
e.initCause(where);
throw e;
}
protected final UnsupportedOperationException unsupported(String feature) {
return new UnsupportedOperationException(getClass().getName() + " has not implemented: " + feature);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy