Package org.springframework.hateoas

Examples of org.springframework.hateoas.VndErrors$VndError


  @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


  @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

  @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

  @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

  @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

  @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

  @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

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

  @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

  @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

Related Classes of org.springframework.hateoas.VndErrors$VndError

Copyright © 2018 www.massapicom. 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.