use of org.eclipse.kapua.service.device.call.message.app.response.kura.KuraResponseCode in project kapua by eclipse.
the class AbstractDeviceApplicationCallResponseHandler method handleDeviceInternalErrorReply.
@SuppressWarnings("rawtypes")
protected void handleDeviceInternalErrorReply(DeviceResponseMessage responseMessage) throws DeviceManagementException {
DeviceResponsePayload responsePayload = (DeviceResponsePayload) responseMessage.getPayload();
KuraResponseCode responseCode = responsePayload.getResponseCode();
throw new DeviceManagementException(DeviceManagementErrorCodes.RESPONSE_INTERNAL_ERROR, null, new Object[] { responseCode, responsePayload.getExceptionMessage(), responsePayload.getExceptionStack() });
}
use of org.eclipse.kapua.service.device.call.message.app.response.kura.KuraResponseCode in project kapua by eclipse.
the class AbstractDeviceApplicationCallResponseHandler method handleBadRequestReply.
@SuppressWarnings("rawtypes")
protected void handleBadRequestReply(DeviceResponseMessage responseMessage) throws DeviceManagementException {
DeviceResponsePayload responsePayload = (DeviceResponsePayload) responseMessage.getPayload();
KuraResponseCode responseCode = responsePayload.getResponseCode();
throw new DeviceManagementException(DeviceManagementErrorCodes.RESPONSE_BAD_REQUEST, null, new Object[] { responseCode, responsePayload.getExceptionMessage(), responsePayload.getExceptionStack() });
}
use of org.eclipse.kapua.service.device.call.message.app.response.kura.KuraResponseCode in project kapua by eclipse.
the class AbstractDeviceApplicationCallResponseHandler method handleNotFoundReply.
@SuppressWarnings("rawtypes")
protected void handleNotFoundReply(DeviceResponseMessage responseMessage) throws DeviceManagementException {
DeviceResponsePayload responsePayload = (DeviceResponsePayload) responseMessage.getPayload();
KuraResponseCode responseCode = responsePayload.getResponseCode();
throw new DeviceManagementException(DeviceManagementErrorCodes.RESPONSE_NOT_FOUND, null, new Object[] { responseCode, responsePayload.getExceptionMessage(), responsePayload.getExceptionStack() });
}
Aggregations