| 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)
ContextAdds 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 Contextwarning - The warning.public List<Warning> getWarnings()
ContextReturns 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 ContextCopyright © 2015–2019. All rights reserved.