public interface TailsErrorWithErrors<R,M> extends TailsError<R>, IsErrorSet<M>
A tails (error) coin with a value and errors.
| Modifier and Type | Method and Description |
|---|---|
static <R,M> TailsErrorWithErrors<R,M> |
create(R value)
Creates a new error coin with given value and errors.
|
default boolean |
hasErrorReports()
Tests if the coin has errors to report.
|
default String |
render()
Renders the error set.
|
default boolean |
reportsErrors()
Tests if the coin reports errors.
|
getReturn, hasInfoReports, hasWarningReports, isError, isHeads, isSuccess, reportsInfo, reportsWarningsaddAllErrors, addError, clearErrorMessages, create, getErrorMessages, hasErrorsisErrorSet, isInfoSet, isWarningSetdefault boolean reportsErrors()
CoinTests if the coin reports errors.
reportsErrors in interface Coin<R>default boolean hasErrorReports()
CoinTests if the coin has errors to report.
hasErrorReports in interface Coin<R>default String render()
Renders the error set.
The method uses DoesRender or simple toString to render errors.
Each element in the error set is rendered in a single line, preceded by the type (error).
render in interface DoesRenderrender in interface IsErrorSet<M>static <R,M> TailsErrorWithErrors<R,M> create(R value)
Creates a new error coin with given value and errors.
create in interface TailsError<R>R - type of the return valueM - the message type for the setvalue - the actual return valueCopyright © 2016–2017. All rights reserved.