Class IObjectChecker.Result
- java.lang.Object
-
- org.apache.wicket.core.util.objects.checker.IObjectChecker.Result
-
- Enclosing interface:
- IObjectChecker
public static class IObjectChecker.Result extends Object
Represents the result of a check.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IObjectChecker.Result.Status
-
Field Summary
Fields Modifier and Type Field Description Throwable
cause
An optional cause of a failure.String
reason
The reason why a check succeeded/failed.IObjectChecker.Result.Status
status
The status of the check.static IObjectChecker.Result
SUCCESS
A singleton that can be used for successful checks
-
Constructor Summary
Constructors Constructor Description Result(IObjectChecker.Result.Status status, String reason)
Constructor.Result(IObjectChecker.Result.Status status, String reason, Throwable cause)
Constructor.
-
-
-
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 String reason
The reason why a check succeeded/failed. Mandatory in failure case.
-
-
Constructor Detail
-
Result
public Result(IObjectChecker.Result.Status status, String reason)
Constructor.- Parameters:
status
- the status of the resultreason
- the reason of successful/failed check
-
Result
public Result(IObjectChecker.Result.Status status, String reason, Throwable cause)
Constructor.- Parameters:
status
- the status of the resultreason
- the reason of successful/failed checkcause
- the cause of a failure. Optional.
-
-