Module org.apache.wicket.core
Class IObjectChecker.Result
java.lang.Object
org.apache.wicket.core.util.objects.checker.IObjectChecker.Result
- Enclosing interface:
- IObjectChecker
Represents the result of a check.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Throwable
An optional cause of a failure.final String
The reason why a check succeeded/failed.The status of the check.static final IObjectChecker.Result
A singleton that can be used for successful checks -
Constructor Summary
ConstructorsConstructorDescriptionResult
(IObjectChecker.Result.Status status, String reason) Constructor.Result
(IObjectChecker.Result.Status status, String reason, Throwable cause) Constructor. -
Method Summary
-
Field Details
-
SUCCESS
A singleton that can be used for successful checks -
status
The status of the check. -
reason
The reason why a check succeeded/failed. Mandatory in failure case. -
cause
An optional cause of a failure.
-
-
Constructor Details
-
Result
Constructor.- Parameters:
status
- the status of the resultreason
- the reason of successful/failed check
-
Result
Constructor.- Parameters:
status
- the status of the resultreason
- the reason of successful/failed checkcause
- the cause of a failure. Optional.
-
-
Method Details