Examples of ExceptionMessage


Examples of org.mule.message.ExceptionMessage

    protected void assertMessageInDlq() throws MuleException
    {
        MuleMessage dl = client.request(JMS_DEAD_LETTER, 1000);
        assertNotNull(dl);
        assertTrue(dl.getPayload() instanceof ExceptionMessage);
        ExceptionMessage em = (ExceptionMessage) dl.getPayload();
        assertNotNull(em.getException());
        assertTrue(em.getException() instanceof MessageRedeliveredException);
    }
View Full Code Here

Examples of org.springframework.data.rest.webmvc.support.ExceptionMessage

  public <T extends Throwable> ResponseEntity<ExceptionMessage> errorResponse(HttpHeaders headers, T throwable,
      HttpStatus status) {
    if (null != throwable && null != throwable.getMessage()) {
      LOG.error(throwable.getMessage(), throwable);
      return response(headers, new ExceptionMessage(throwable), status);
    } else {
      return response(headers, null, status);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.