java.lang.Object
io.helidon.common.Errors.Collector
- Enclosing class:
- Errors
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryModifier and TypeMethodDescriptionclear()Clear this instance by discarding allErrors.ErrorMessages collected and re-setting status.collect()Process the messages collected into anErrorsinstance.Add a fatal error to the list of messages.Add a fatal error to the list of messages.booleanhasFatal()A helper method to check if this collector already has a fatal message.Add a hint message to the list of messages.Add a hint message to the list of messages.Add a message to the list of messages.Add a message to the list of messages with source automatically added.Add a warning message to the list of messages.Add a warning message to the list of messages.
- 
Constructor Details- 
CollectorDeprecated, for removal: This API element is subject to removal in a future version.please useErrors.collector()insteadThis constructor was accidentally left public, it should be private.
 
- 
- 
Method Details- 
messageAdd a message to the list of messages.- Parameters:
- source- source of the message
- message- text message of the message
- severity- indicates severity of added message
- Returns:
- updated collector
 
- 
messageAdd a message to the list of messages with source automatically added.- Parameters:
- message- text message of the message
- severity- indicates severity of added message
- Returns:
- updated collector
 
- 
fatalAdd a fatal error to the list of messages.- Parameters:
- message- message of the error
- Returns:
- updated collector
 
- 
fatalAdd a fatal error to the list of messages.- Parameters:
- source- source of the error
- message- message of the error
- Returns:
- updated collector
 
- 
warnAdd a warning message to the list of messages.- Parameters:
- message- message of the warning
- Returns:
- updated collector
 
- 
warnAdd a warning message to the list of messages.- Parameters:
- source- source of the warning
- message- message of the warning
- Returns:
- updated collector
 
- 
hintAdd a hint message to the list of messages.- Parameters:
- message- message of the hint
- Returns:
- updated collector
 
- 
hintAdd a hint message to the list of messages.- Parameters:
- source- source of the hint
- message- message of the hint
- Returns:
- updated collector
 
- 
collectProcess the messages collected into anErrorsinstance. Clear this collector (e.g. it can be used to collect new messages).- Returns:
- new Errorsinstance built with messages collected by this collecto
 
- 
clearClear this instance by discarding allErrors.ErrorMessages collected and re-setting status.- Returns:
- updated collector
 
- 
hasFatalpublic boolean hasFatal()A helper method to check if this collector already has a fatal message.- Returns:
- true if this collector contains at least one fatal message
 
 
- 
Errors.collector()instead