DataType
- Type of data which should be set and returned.public class DataReturnAgent<DataType> extends Object
Constructor and Description |
---|
DataReturnAgent() |
Modifier and Type | Method and Description |
---|---|
DataType |
getData()
Get data.
|
BallerinaException |
getError()
Get Error.
|
void |
setData(DataType data)
Set data.
|
void |
setError(BallerinaException ballerinaException)
Set Error.
|
public void setData(DataType data)
data
- data which should get returned.public DataType getData()
public void setError(BallerinaException ballerinaException)
ballerinaException
- the error to be set.public BallerinaException getError()
Copyright © 2019 WSO2. All rights reserved.