IMPLTYPE - Implementation typepublic interface IErrorBase<IMPLTYPE extends IErrorBase<IMPLTYPE>> extends IHasErrorLevel, ISuccessIndicator, IErrorIndicator, ISeverityComparable<IMPLTYPE>, Serializable
| Modifier and Type | Method and Description |
|---|---|
default boolean |
isEqualSevereThan(IMPLTYPE aOther)
Check if this object is of the same level (= equal important) than the
passed object.
|
default boolean |
isError() |
default boolean |
isFailure() |
default boolean |
isLessOrEqualSevereThan(IMPLTYPE aOther)
Check if this object is of equal or lower level (= equally or less
important) than the passed object.
|
default boolean |
isLessSevereThan(IMPLTYPE aOther)
Check if this object is of lower level (= less important) than the passed
object.
|
default boolean |
isMoreOrEqualSevereThan(IMPLTYPE aOther)
Check if this object is of equal or higher level (= equally or more
important) than the passed object.
|
default boolean |
isMoreSevereThan(IMPLTYPE aOther)
Check if this object is of higher level (= more important) than the passed
object.
|
default boolean |
isNoError() |
default boolean |
isSuccess() |
getErrorLeveland, ordefault boolean isSuccess()
isSuccess in interface ISuccessIndicatortrue on success and false on failure.default boolean isFailure()
isFailure in interface ISuccessIndicatortrue on failure and false on success.default boolean isError()
isError in interface IErrorIndicatortrue if this level is at least
EErrorLevel.ERROR or worse.default boolean isNoError()
isNoError in interface IErrorIndicatortrue if this level is below
EErrorLevel.ERROR.default boolean isEqualSevereThan(@Nonnull IMPLTYPE aOther)
ISeverityComparableisEqualSevereThan in interface ISeverityComparable<IMPLTYPE extends IErrorBase<IMPLTYPE>>aOther - The object to compare to.true if this object is equally important than the
passed object!default boolean isLessSevereThan(@Nonnull IMPLTYPE aOther)
ISeverityComparableisLessSevereThan in interface ISeverityComparable<IMPLTYPE extends IErrorBase<IMPLTYPE>>aOther - The object to compare to.true if this object is less important than the passed
object!default boolean isLessOrEqualSevereThan(@Nonnull IMPLTYPE aOther)
ISeverityComparableisLessOrEqualSevereThan in interface ISeverityComparable<IMPLTYPE extends IErrorBase<IMPLTYPE>>aOther - The object to compare to.true if this object is equally or less important than
the passed object!default boolean isMoreSevereThan(@Nonnull IMPLTYPE aOther)
ISeverityComparableisMoreSevereThan in interface ISeverityComparable<IMPLTYPE extends IErrorBase<IMPLTYPE>>aOther - The object to compare to.true if this object is more important than the passed
object!default boolean isMoreOrEqualSevereThan(@Nonnull IMPLTYPE aOther)
ISeverityComparableisMoreOrEqualSevereThan in interface ISeverityComparable<IMPLTYPE extends IErrorBase<IMPLTYPE>>aOther - The object to compare to.true if this object is equally or more important than
the passed object!Copyright © 2014–2016 Philip Helger. All rights reserved.