code: private JsonNode processErrorResponse(final JsonNode resp) {
          String errorMessage = resp.get("error").asText();
          if (resp.has("stack")) {
              errorMessage += "\n" + resp.get("stack").asText();
          }
  
          throw new JsiiException(errorMessage);
      }
docs: Handles an "error" response by extracting the message and stack trace
  and throwing a JsiiException.
  @param resp The response
  @return Never