Class JsonResultWrapper.Result
java.lang.Object
de.iip_ecosphere.platform.support.json.JsonResultWrapper.Result
- All Implemented Interfaces:
Serializable
- Enclosing class:
JsonResultWrapper
Represents the result w/o exception.
- Author:
- Holger Eichelberger, SSE
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the exception text.Returns the result.booleanReturns whether this object represents an exception.voidsetException(String exception) Defines the exception text.voidDefines the result.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
result
-
exception
-
-
Constructor Details
-
Result
private Result()Creates a result object (for JSON). -
Result
Creates a result object for a result value.- Parameters:
result- the result value
-
Result
Creates a result object for an exceptional situation.- Parameters:
ex- the exception
-
-
Method Details
-
getResult
Returns the result.- Returns:
- the result
-
getException
Returns the exception text.- Returns:
- the exception text
-
isException
public boolean isException()Returns whether this object represents an exception.- Returns:
truefor exception,falsefor normal execution
-
setResult
Defines the result.- Parameters:
result- the result
-
setException
Defines the exception text.- Parameters:
exception- the exception text
-