public static class JsonResultWrapper.Result extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
private String |
exception |
private String |
result |
private static long |
serialVersionUID |
| Modifier | Constructor and Description |
|---|---|
private |
Result()
Creates a result object (for JSON).
|
private |
Result(Exception ex)
Creates a result object for an exceptional situation.
|
private |
Result(String result)
Creates a result object for a result value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getException()
Returns the exception text.
|
String |
getResult()
Returns the result.
|
boolean |
isException()
Returns whether this object represents an exception.
|
void |
setException(String exception)
Defines the exception text.
|
void |
setResult(String result)
Defines the result.
|
private static final long serialVersionUID
private String result
private String exception
private Result()
private Result(String result)
result - the result valueprivate Result(Exception ex)
ex - the exceptionpublic String getResult()
public String getException()
public boolean isException()
true for exception, false for normal executionpublic void setResult(String result)
result - the resultpublic void setException(String exception)
exception - the exception textCopyright © 2021. All rights reserved.