package com.dbs.consentServer.handler;

// @RestControllerAdvice
public class ServerExceptionHandler{

  // @ExceptionHandler(value = {IllegalArgumentException.class, IllegalStateException.class, ItemNotFoundException.class})
  // protected ResponseEntity<Object> handleNoItemFound(final RuntimeException ex, WebRequest request){
  //   return handleExceptionInternal(ex, "no item", new HttpHeaders(), HttpStatus.NO_CONTENT, request);
  // }
  

  // @ExceptionHandler(NoItemException.class)
  // @ResponseStatus(value = HttpStatus.NO_CONTENT, reason = "no item found")
  // public void nonResult(NoItemException exception, HttpServletResponse response){
    
  // }

  // @ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR, reason = "OCRTAG creation failed")
  // @ExceptionHandler(OcrTagException.class)
  // public void ocrTagException(OcrTagException e, HttpServletResponse response){
    
  // }

  // @ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "bad parameter")
  // @ExceptionHandler(RequestParameterException.class)
  // public void emptyParameterException(RequestParameterException e, HttpServletResponse response){

  // }
}