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

org.unlaxer.compiler.CompileError Maven / Gradle / Ivy

There is a newer version: 1.4.4
Show newest version
package org.unlaxer.compiler;

import java.util.HashMap;
import java.util.Map;
import java.util.function.Consumer;

public class CompileError extends RuntimeException {
  
  public enum ComileErrorContextKey{
    calculatorList,
  }
  
  
  
  public final Map objectByKey = new HashMap<>();

  public CompileError() {
    super();
  }
  
  public CompileError(Consumer> mapConsumer) {
    super();
    mapConsumer.accept(objectByKey);
  }
  
  public CompileError(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
    super(message, cause, enableSuppression, writableStackTrace);
  }


  public CompileError(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace , Consumer> mapConsumer) {
    super(message, cause, enableSuppression, writableStackTrace);
    mapConsumer.accept(objectByKey);
  }

  public CompileError(String message, Throwable cause) {
    super(message, cause);
  }

  public CompileError(String message) {
    super(message);
  }

  public CompileError(Throwable cause) {
    super(cause);
  }
  
  public CompileError(String message, Throwable cause , Consumer> mapConsumer) {
    super(message, cause);
    mapConsumer.accept(objectByKey);
  }

  public CompileError(String message,Consumer> mapConsumer) {
    super(message);
    mapConsumer.accept(objectByKey);
  }

  public CompileError(Throwable cause,Consumer> mapConsumer) {
    super(cause);
    mapConsumer.accept(objectByKey);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy