public class ErrorResponse extends Response
ErrorResponse messages are sent by the DXL fabric itself or service instances upon receiving
 Request messages. The error response may indicate the inability to locate a service to handle the request
 or an internal error within the service itself. Error response messages are sent using the
 DxlClient.sendResponse(com.opendxl.client.message.Response) method of a client instance.CHARSET_ASCII, CHARSET_UTF8, MESSAGE_TYPE_ERROR, MESSAGE_TYPE_EVENT, MESSAGE_TYPE_REQUEST, MESSAGE_TYPE_RESPONSE, MESSAGE_VERSION| Constructor and Description | 
|---|
ErrorResponse(DxlClient client,
             Request request,
             int errorCode,
             java.lang.String errorMessage)
Constructor for  
ErrorResponse | 
ErrorResponse(Request request,
             int errorCode,
             java.lang.String errorMessage)
Constructor for  
ErrorResponse | 
ErrorResponse(java.lang.String sourceClientId,
             Request request,
             int errorCode,
             java.lang.String errorMessage)
Constructor for  
ErrorResponse | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getErrorCode()
Returns the numeric error code for the error response 
 | 
java.lang.String | 
getErrorMessage()
Returns the textual error message 
 | 
byte | 
getMessageType()
Returns the numeric type of the message 
 | 
getRequest, getRequestMessageId, getServiceIdfromBytes, getBrokerIds, getClientIds, getDestinationTopic, getDestTenantGuids, getMessageId, getMessagePack, getOtherFields, getPayload, getSourceBrokerId, getSourceClientId, getSourceClientInstanceId, getSourceTenantGuid, getVersion, setBrokerIds, setClientIds, setDestinationTopic, setDestTenantGuids, setOtherFields, setPayload, setSourceClientId, setSourceClientInstanceId, setSourceTenantGuid, toBytespublic ErrorResponse(DxlClient client, Request request, int errorCode, java.lang.String errorMessage)
ErrorResponsepublic ErrorResponse(Request request, int errorCode, java.lang.String errorMessage)
ErrorResponsepublic ErrorResponse(java.lang.String sourceClientId,
                     Request request,
                     int errorCode,
                     java.lang.String errorMessage)
ErrorResponsepublic int getErrorCode()
public java.lang.String getErrorMessage()
public byte getMessageType()
getMessageType in class Response