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

org.petitparser.context.ParseError Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package org.petitparser.context;

/**
 * A parse error.
 */
public class ParseError extends RuntimeException {

  private final Failure failure;

  public ParseError(Failure failure) {
    super(failure.getMessage());
    this.failure = failure;
  }

  /**
   * Return the parse {@link Context} causing this error.
   */
  public Failure getFailure() {
    return failure;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy