public interface IsErrorSetFT extends IsErrorSet<FormattingTuple>
Interface for objects that have a set of error messages of type FormattingTuple.
| Modifier and Type | Method and Description |
|---|---|
default void |
addAllErrors(IsErrorSetFT errors)
Adds all errors from given error set.
|
default void |
addError(String error)
Adds a new error.
|
default void |
addError(String error,
Object... obj)
Adds a new error.
|
static IsErrorSetFT |
create()
Creates a new error set.
|
default String |
render()
Renders the error set.
|
addAllErrors, addError, clearErrorMessages, getErrorMessages, hasErrorsisErrorSet, isInfoSet, isWarningSetdefault void addAllErrors(IsErrorSetFT errors)
Adds all errors from given error set.
errors - errors to adddefault void addError(String error)
Adds a new error.
error - the error message, should not be blankNullPointerException - if error was nullIllegalArgumentException - if error was blankdefault void addError(String error, Object... obj)
Adds a new error.
error - the error message, should not be blankobj - the elements for the error message, should not be null and have no null elementsNullPointerException - if error or obj was nullIllegalArgumentException - if error was blank or obj contained null elementsdefault String render()
Renders the error set. Each element in the error set is rendered in a single line.
render in interface DoesRenderrender in interface IsErrorSet<FormattingTuple>static IsErrorSetFT create()
Creates a new error set.
create in interface IsErrorSet<FormattingTuple>Copyright © 2016–2017. All rights reserved.