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

team.yi.tools.semanticcommit.parser.ParseException Maven / Gradle / Ivy

package team.yi.tools.semanticcommit.parser;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@EqualsAndHashCode(onlyExplicitlyIncluded = true, callSuper = true)
@ToString(onlyExplicitlyIncluded = true)
public class ParseException extends RuntimeException {
    private static final long serialVersionUID = -7877472928281534247L;

    @EqualsAndHashCode.Include
    @ToString.Include
    private int line;

    @EqualsAndHashCode.Include
    @ToString.Include
    private int column;

    public ParseException(final int line, final int column) {
        super();

        this.line = line;
        this.column = column;
    }

    public ParseException(final int line, final int column, final String message) {
        super(message);

        this.line = line;
        this.column = column;
    }

    public ParseException(final int line, final int column, final String message, final Throwable cause) {
        super(message, cause);

        this.line = line;
        this.column = column;
    }

    public ParseException(final int line, final int column, final Throwable cause) {
        super(cause);

        this.line = line;
        this.column = column;
    }

    public ParseException(
        final int line,
        final int column,
        final String message,
        final Throwable cause,
        final boolean enableSuppression,
        final boolean writableStackTrace
    ) {
        super(message, cause, enableSuppression, writableStackTrace);

        this.line = line;
        this.column = column;
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy