Examples of ErrorResource


Examples of com.xmage.ws.resource.ErrorResource

            return pjp.proceed();
        } catch (Exception e) {
            logger.error("Error: ", e);
        }

        Resource resource = new ErrorResource(DomainErrors.Errors.STATUS_SERVER_ERROR, "server_error");
        JSONObject serverError = ResponseBuilder.build(resource);

        return Response.status(200).entity(serverError.toJSONString()).build();
  }
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.