addError
Adds another error entry as a child to this one. Entries are immutable, so the updated entry is returned. The entry this is called on is not changed.
For entries that are empty or otherwise not able to accept a child, they may return the provided entry as a new root entry instead.
Return
A new error entry based on the combination, the other entry as a new root if this one is empty, or this entry if the other entry is empty.
Author
fzzyhmstrs
Since
0.7.0
Parameters
New error entry to collate onto this one
Adds another error entry of the given type as a child to this one, using the builder to build that entry. Entries are immutable, so the updated entry is returned. The entry this is called on is not changed.
For entries that are empty or otherwise not able to accept a child, they may return the provided entry as a new root entry instead.
Return
A new error entry based on the combination, the other entry as a new root if this one is empty, or this entry if the other entry is empty.
Author
fzzyhmstrs
Since
0.7.0
Parameters
Non-null type of the error entry
UnaryOperator<Builder> operator for applying features to the provided stub builder instance
Adds another error entry using ValidationResult.Errors.BASIC as the type, as a child to this one, using the builder to build that entry. Entries are immutable, so the updated entry is returned. The entry this is called on is not changed.
For entries that are empty or otherwise not able to accept a child, they may return the provided entry as a new root entry instead.
Return
A new error entry based on the combination, the other entry as a new root if this one is empty, or this entry if the other entry is empty.
Author
fzzyhmstrs
Since
0.7.0
Parameters
UnaryOperator<Builder> operator for applying features to the provided stub builder instance