public ResponseEntity handleRuntimeException()

in src/main/java/com/epam/digital/data/platform/starter/errorhandling/BaseRestExceptionHandler.java [78:84]


  public ResponseEntity<SystemErrorDto> handleRuntimeException(RuntimeException ex) {
    var error = SystemErrorDto.builder().traceId(MDC.get(TRACE_ID_KEY))
        .code(String.valueOf(HttpStatus.INTERNAL_SERVER_ERROR.value()))
        .message(INTERNAL_SERVER_ERROR).build();
    log.error(INTERNAL_SERVER_ERROR, ex);
    return new ResponseEntity<>(error, HttpStatus.INTERNAL_SERVER_ERROR);
  }