public interface Context
A context for various actions like parsing or building.
Modifier and Type | Method and Description |
---|---|
void |
addWarning(Warning warning)
Adds a warning to the context.
|
List<Warning> |
getWarnings()
Returns a list of all warnings added to this context.
|
void addWarning(Warning warning)
Adds a warning to the context.
Warnings can inform about unsupported parameters, unsupported values or combinations of these. The action will resume it's work (best-effort). If the problems prevents the rest of the action from working correctly an exception should be thrown.
warning
- The warning.IllegalArgumentException
- If the warning is null
.Copyright © 2015–2019. All rights reserved.