Example usage for org.eclipse.jgit.api.errors InvalidRefNameException InvalidRefNameException

List of usage examples for org.eclipse.jgit.api.errors InvalidRefNameException InvalidRefNameException

Introduction

In this page you can find the example usage for org.eclipse.jgit.api.errors InvalidRefNameException InvalidRefNameException.

Prototype

public InvalidRefNameException(String msg) 

Source Link

Document

Constructor for InvalidRefNameException

Usage

From source file:util.ChkoutCmd.java

License:Eclipse Distribution License

private void processOptions() throws InvalidRefNameException {
    if ((!checkoutAllPaths && paths.isEmpty())
            && (name == null || !Repository.isValidRefName(Constants.R_HEADS + name)))
        throw new InvalidRefNameException(
                MessageFormat.format(JGitText.get().branchNameInvalid, name == null ? "<null>" : name)); //$NON-NLS-1$
}