Examples of ErrorDto


Examples of com.abiquo.model.transport.error.ErrorDto

    *           The expected error code.
    */
   public static void assertHasError(final AbiquoException exception, final Status expectedHttpStatus,
         final String expectedErrorCode) {
      assertEquals(exception.getHttpStatus(), expectedHttpStatus);
      ErrorDto error = exception.findError(expectedErrorCode);
      assertNotNull(error);
   }
View Full Code Here

Examples of com.abiquo.model.transport.error.ErrorDto

    *           The expected error code.
    */
   public static void assertHasError(final AbiquoException exception, final Status expectedHttpStatus,
         final String expectedErrorCode) {
      assertEquals(exception.getHttpStatus(), expectedHttpStatus);
      ErrorDto error = exception.findError(expectedErrorCode);
      assertNotNull(error);
   }
View Full Code Here

Examples of org.libreplan.ws.common.api.ErrorDTO

        try {
            OrderElement orderElement = orderElementDAO.findByCode(code);
            String errorMessage = checkRemovalValidation(orderElement);
            if (errorMessage != null) {
                return Response.status(Status.FORBIDDEN)
                        .entity(new ErrorDTO(errorMessage)).build();
            }

            if (orderElement.isOrder()) {
                orderModel.remove((Order) orderElement);
            } else {
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.