Class PatternFindingGitCliExceptionResolver
- java.lang.Object
-
- org.craftercms.studio.impl.v2.utils.git.cli.PatternFindingGitCliExceptionResolver
-
- All Implemented Interfaces:
GitCliOutputExceptionResolver
- Direct Known Subclasses:
NoChangesToCommitExceptionResolver
,RepositoryLockedExceptionResolver
public abstract class PatternFindingGitCliExceptionResolver extends Object implements GitCliOutputExceptionResolver
Base class forGitCliOutputExceptionResolver
s that want to determine the error produced by a Git command by finding a special regex pattern in the output.- Since:
- 3.1.23
- Author:
- Alfonso Vasquez
-
-
Constructor Summary
Constructors Constructor Description PatternFindingGitCliExceptionResolver()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract GitCliOutputException
createException(int exitValue, String output)
protected abstract Pattern
getErrorMessagePattern()
GitCliOutputException
resolveException(int exitValue, String output)
-
-
-
Method Detail
-
resolveException
public GitCliOutputException resolveException(int exitValue, String output)
- Specified by:
resolveException
in interfaceGitCliOutputExceptionResolver
-
getErrorMessagePattern
protected abstract Pattern getErrorMessagePattern()
-
createException
protected abstract GitCliOutputException createException(int exitValue, String output)
-
-