- Enclosing class:
- Directive
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A callback interface for receiving errors and warnings encountered while
parsing a single directive's values.
A valueIndex of -1 indicates the error does not pertain
to a specific value within the directive.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Directive.DirectiveErrorConsumerA no-op consumer that silently ignores all errors. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Policy.Severity severity, String message, int valueIndex) Called when a parsing error or warning is encountered.
-
Field Details
-
ignored
A no-op consumer that silently ignores all errors.
-
-
Method Details
-
add
Called when a parsing error or warning is encountered.- Parameters:
severity- the severity of the issuemessage- a human-readable description of the issuevalueIndex- the zero-based index of the value within the directive, or-1if the issue does not pertain to a specific value
-