Package io.jenkins.plugins.explain_error
Class ErrorExplainer
java.lang.Object
io.jenkins.plugins.explain_error.ErrorExplainer
Service class responsible for explaining errors using AI.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexplainError(Run<?, ?> run, TaskListener listener, String logPattern, int maxLines) explainErrorText(String errorText, Run<?, ?> run) Explains error text directly without extracting from logs.
-
Constructor Details
-
ErrorExplainer
public ErrorExplainer()
-
-
Method Details
-
getProviderName
-
explainError
-
explainErrorText
public ErrorExplanationAction explainErrorText(String errorText, @NonNull Run<?, ?> run) throws IOException, ExplanationExceptionExplains error text directly without extracting from logs. Used for console output error explanation.- Throws:
IOExceptionExplanationException
-