- Enclosing class:
- Policy
- 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 serialized CSP.
A valueIndex of -1 indicates that the error does not pertain
to a specific value within the directive.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Policy.PolicyErrorConsumerPolicyErrorConsumer ignored. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Policy.Severity severity, String message, int directiveIndex, int valueIndex) Called when a parsing error or warning is encountered.
-
Field Details
-
ignored
PolicyErrorConsumer ignored.
-
-
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 issuedirectiveIndex- the zero-based index of the directive within the policyvalueIndex- the zero-based index of the value within the directive, or-1if the issue does not pertain to a specific value
-