GerberParseException.java

package com.varnernet.gerb4j;

/**
 * Thrown when a Gerber input cannot be parsed successfully.
 *
 * <p>This is an unchecked exception so that the convenience factory methods on
 * {@link GerberContext} remain easy to use in both application and library code.
 */
public class GerberParseException extends RuntimeException {

    /**
     * Creates a new {@code GerberParseException} with the specified detail message.
     *
     * @param message the detail message
     */
    public GerberParseException(final String message) {
        super(message);
    }

    /**
     * Creates a new {@code GerberParseException} with the specified detail message and cause.
     *
     * @param message the detail message
     * @param cause   the underlying cause
     */
    public GerberParseException(final String message, final Throwable cause) {
        super(message, cause);
    }
}