public static class IObjectChecker.Result extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IObjectChecker.Result.Status |
Modifier and Type | Field and 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 and Description |
---|
Result(IObjectChecker.Result.Status status,
String reason)
Constructor.
|
Result(IObjectChecker.Result.Status status,
String reason,
Throwable cause)
Constructor.
|
public static final IObjectChecker.Result SUCCESS
public final IObjectChecker.Result.Status status
public final String reason
public final Throwable cause
public Result(IObjectChecker.Result.Status status, String reason)
status
- the status of the resultreason
- the reason of successful/failed checkpublic Result(IObjectChecker.Result.Status status, String reason, Throwable cause)
status
- the status of the resultreason
- the reason of successful/failed checkcause
- the cause of a failure. Optional.Copyright © 2006–2022 Apache Software Foundation. All rights reserved.