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

com.github.volodya_lombrozo.conventional_commit_linter.exceptions.InvalidCommit Maven / Gradle / Ivy

package com.github.volodya_lombrozo.conventional_commit_linter.exceptions;

import com.github.volodya_lombrozo.conventional_commit_linter.commit.Commit;
import com.github.volodya_lombrozo.conventional_commit_linter.commit.Commits;
import com.github.volodya_lombrozo.conventional_commit_linter.format.Format;

import java.io.IOException;

public class InvalidCommit extends Exception {

    public InvalidCommit(Commits commits, Format format, IOException ioe){
        super(String.format("Fail during validation of Commits[%s] by the Format[%s]", commits, format), ioe);
    }

    public InvalidCommit(Commit commit, Format format) {
        super(String.format("Commit %s not matches with the next format: %s . Please, change the commit formatting.", commit, format));
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy