Constructor and Description |
---|
ContextImpl()
Creates a context.
|
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.
|
public void addWarning(Warning warning)
Context
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.
addWarning
in interface Context
warning
- The warning.public List<Warning> getWarnings()
Context
Returns a list of all warnings added to this context.
The returned list will be a copy of the internal list. Modifications on the returned list don't have any effect on the internal list.
getWarnings
in interface Context
Copyright © 2015–2019. All rights reserved.