Class IObjectChecker.Result
- java.lang.Object
-
- org.apache.wicket.core.util.objects.checker.IObjectChecker.Result
-
- Enclosing interface:
- IObjectChecker
public static class IObjectChecker.Result extends java.lang.ObjectRepresents the result of a check.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIObjectChecker.Result.Status
-
Field Summary
Fields Modifier and Type Field Description java.lang.ThrowablecauseAn optional cause of a failure.java.lang.StringreasonThe reason why a check succeeded/failed.IObjectChecker.Result.StatusstatusThe status of the check.static IObjectChecker.ResultSUCCESSA singleton that can be used for successful checks
-
Constructor Summary
Constructors Constructor Description Result(IObjectChecker.Result.Status status, java.lang.String reason)Constructor.Result(IObjectChecker.Result.Status status, java.lang.String reason, java.lang.Throwable cause)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()
-
-
-
Field Detail
-
SUCCESS
public static final IObjectChecker.Result SUCCESS
A singleton that can be used for successful checks
-
status
public final IObjectChecker.Result.Status status
The status of the check.
-
reason
public final java.lang.String reason
The reason why a check succeeded/failed. Mandatory in failure case.
-
cause
public final java.lang.Throwable cause
An optional cause of a failure.
-
-
Constructor Detail
-
Result
public Result(IObjectChecker.Result.Status status, java.lang.String reason)
Constructor.- Parameters:
status- the status of the resultreason- the reason of successful/failed check
-
Result
public Result(IObjectChecker.Result.Status status, java.lang.String reason, java.lang.Throwable cause)
Constructor.- Parameters:
status- the status of the resultreason- the reason of successful/failed checkcause- the cause of a failure. Optional.
-
-