Class ClientException

    • Constructor Detail

      • ClientException

        public ClientException​(int statusCode,
                               String message)
      • ClientException

        public ClientException​(String message)
      • ClientException

        public ClientException​(Throwable e)
      • ClientException

        public ClientException​(int statusCode,
                               Throwable e)
      • ClientException

        public ClientException​(String message,
                               Throwable e)
    • Method Detail

      • from

        public static ClientException from​(Throwable e)
        If e is a ClientException then returns e otherwise returns e wrapped in a ClientException.
        Parameters:
        e - throwable to return as ClientException
        Returns:
        client exception