public class FormatExceptionPolicyStrict extends NoLambda.EqualityBasedOnSerialization implements FormatExceptionPolicy
A policy for handling exceptions in the format. Any exceptions will halt the build except for a specifically excluded path or step.
NoLambda.EqualityBasedOnSerialization| Constructor and Description |
|---|
FormatExceptionPolicyStrict() |
| Modifier and Type | Method and Description |
|---|---|
void |
excludePath(String relativePath)
Adds a relative path to exclude.
|
void |
excludeStep(String stepName)
Adds a step name to exclude.
|
void |
handleError(Throwable e,
FormatterStep step,
String relativePath)
Called for every error in the formatter.
|
equals, hashCode, toBytesclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitfailOnlyOnError, toBytespublic void excludeStep(String stepName)
Adds a step name to exclude.
public void excludePath(String relativePath)
Adds a relative path to exclude.
public void handleError(Throwable e, FormatterStep step, String relativePath)
FormatExceptionPolicyCalled for every error in the formatter.
handleError in interface FormatExceptionPolicy