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

io.vertx.codetrans.CodeModel Maven / Gradle / Ivy

There is a newer version: 4.1.0.Beta1
Show newest version
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