public final class ResponseItem extends Object
| Constructor and Description |
|---|
ResponseItem(int errorCode,
String errorMessage)
Create a ResponseItem specifying the ResponseError and error Message.
|
ResponseItem(int errorCode,
String errorMessage,
Object response)
Create a ResponseItem specifying the ResponseError and error Message.
|
ResponseItem(Object response)
Create a ResponseItem specifying a value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getErrorCode()
Get the error code associated with this ResponseItem.
|
String |
getErrorMessage()
Get the Error Message associated with this Response Item.
|
Object |
getResponse()
Get the response value.
|
int |
hashCode() |
public ResponseItem(int errorCode,
String errorMessage)
errorCode - an RPC error codeerrorMessage - the Error Messagepublic ResponseItem(int errorCode,
String errorMessage,
Object response)
errorCode - an RPC error codeerrorMessage - the Error Messageresponse - the application specific value that will be sent as
as part of "data" section of the error.public ResponseItem(Object response)
public Object getResponse()
public int getErrorCode()
public String getErrorMessage()
Copyright © 2007-2012. All Rights Reserved.