Examples of VndErrors


Examples of org.springframework.hateoas.VndErrors

  @ExceptionHandler
  @ResponseStatus(HttpStatus.BAD_REQUEST)
  @ResponseBody
  public VndErrors onMissingServletRequestParameterException(MissingServletRequestParameterException e) {
    String logref = logDebug(e);
    return new VndErrors(logref, e.getMessage());
  }
View Full Code Here

Examples of org.springframework.hateoas.VndErrors

  @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
  @ResponseBody
  public VndErrors onException(Exception e) {
    String logref = logError(e);
    String msg = StringUtils.hasText(e.getMessage()) ? e.getMessage() : e.getClass().getSimpleName();
    return new VndErrors(logref, msg);
  }
View Full Code Here

Examples of org.springframework.hateoas.VndErrors

  @ResponseBody
  @ExceptionHandler
  @ResponseStatus(HttpStatus.NOT_FOUND)
  public VndErrors onNoSuchDefinitionException(NoSuchDefinitionException e) {
    String logref = logDebug(e);
    return new VndErrors(logref, e.getMessage());
  }
View Full Code Here

Examples of org.springframework.hateoas.VndErrors

  @ResponseBody
  @ExceptionHandler
  @ResponseStatus(HttpStatus.BAD_REQUEST)
  public VndErrors onDefinitionAlreadyExistsException(DefinitionAlreadyExistsException e) {
    String logref = logDebug(e);
    return new VndErrors(logref, e.getMessage());
  }
View Full Code Here

Examples of org.springframework.hateoas.VndErrors

  @ResponseBody
  @ExceptionHandler
  @ResponseStatus(HttpStatus.BAD_REQUEST)
  public VndErrors onAlreadyDeployedException(AlreadyDeployedException e) {
    String logref = logDebug(e);
    return new VndErrors(logref, e.getMessage());
  }
View Full Code Here

Examples of org.springframework.hateoas.VndErrors

  @ResponseBody
  @ExceptionHandler
  @ResponseStatus(HttpStatus.BAD_REQUEST)
  public VndErrors onNotDeployedException(NotDeployedException e) {
    String logref = logDebug(e);
    return new VndErrors(logref, e.getMessage());
  }
View Full Code Here

Examples of org.springframework.hateoas.VndErrors

  @ResponseBody
  @ExceptionHandler
  @ResponseStatus(HttpStatus.BAD_REQUEST)
  public VndErrors onInvalidDefintion(StreamDefinitionException e) {
    String logref = logDebug(e);
    return new VndErrors(logref, e.getMessage());
  }
View Full Code Here

Examples of org.springframework.hateoas.VndErrors

  @ResponseBody
  @ExceptionHandler
  @ResponseStatus(HttpStatus.CONFLICT)
  public VndErrors onModuleAlreadyExistsException(ModuleAlreadyExistsException e) {
    String logref = logDebug(e);
    return new VndErrors(logref, e.getMessage());
  }
View Full Code Here

Examples of org.springframework.hateoas.VndErrors

  @ResponseBody
  @ExceptionHandler
  @ResponseStatus(HttpStatus.NOT_FOUND)
  public VndErrors onNoSuchMetricException(NoSuchMetricException e) {
    String logref = logDebug(e);
    return new VndErrors(logref, e.getMessage());
  }
View Full Code Here

Examples of org.springframework.hateoas.VndErrors

  @ResponseBody
  @ExceptionHandler
  @ResponseStatus(HttpStatus.NOT_FOUND)
  public VndErrors onModuleNotDeployedException(ModuleNotDeployedException e) {
    String logref = logDebug(e);
    return new VndErrors(logref, e.getMessage());
  }
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.