vertx/src/main/java/eu/internetofus/common/vertx/ComponentClient.java
/**
   * Create a service exception from a client response.
   *
   * @param response that contains the error.
   *
   * @return the exception with the error.
   */
Create a service exception from a client response.
@param response that contains the error.

@return the exception with the error.
Create a service exception from a client response . @param response that contains the error . @return the exception with the error .
protected ServiceException toServiceException(final HttpResponse<Buffer> response) {
    final var message = Model.fromResponse(response, ErrorMessage.class);
    if (message != null) {
      return new ServiceException(response.statusCode(), response.statusMessage(), message.toJsonObject());
    } else {
      return new ServiceException(response.statusCode(), response.statusMessage());
    }
  }
protected ServiceException toServiceException ( final HttpResponse < Buffer > response ) { final var message = Model . fromResponse ( response , ErrorMessage . class ) ; if ( message != null ) { return new ServiceException ( response . statusCode ( ) , response . statusMessage ( ) , message . toJsonObject ( ) ) ; } else { return new ServiceException ( response . statusCode ( ) , response . statusMessage ( ) ) ; } }
Create a service exception from a client response.
Create a service exception from a client response .