code: @Override
      public Response toResponse(PersistenceException exception) {
          logger.error("Executing SQL error", exception);
  
          ErrorMessage errorMessage = ErrorMessage.fromStatus(Response.Status.INTERNAL_SERVER_ERROR.getStatusCode());
          errorMessage.setThrowable(exception);
          errorMessage.setCode(Hashing.murmur3_32().hashUnencodedChars(exception.getClass().getName()).toString());
  
          boolean isDev = mode.isDev();
          List<ErrorMessage.Error> errors = Lists.newArrayList();
  
          errors.add(new Result.Error(
                  errorMessage.getCode(),
                  exception.getMessage(),
                  null,
                  isDev ? ErrorMessage.parseSource(resourceInfo) : null
          ));
  
          if (isDev) {
              errors.addAll(ErrorMessage.parseErrors(exception, errorMessage.getStatus()));
          }
          errorMessage.setErrors(errors);
  
          return Response.status(errorMessage.getStatus())
                  .entity(errorMessage)
                  .type(ExceptionMapperUtils.getResponseType())
                  .build();
      }
docs: {@inheritDoc}