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 for
GitCliOutputExceptionResolvers 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract GitCliOutputExceptioncreateException(int exitValue, String output) protected abstract PatternresolveException(int exitValue, String output)
-
Constructor Details
-
PatternFindingGitCliExceptionResolver
public PatternFindingGitCliExceptionResolver()
-
-
Method Details
-
resolveException
- Specified by:
resolveExceptionin interfaceGitCliOutputExceptionResolver
-
getErrorMessagePattern
-
createException
-