Class ResponseException

    • Constructor Detail

      • ResponseException

        public ResponseException​(String message,
                                 int status)
      • ResponseException

        public ResponseException​(String message,
                                 int status,
                                 Throwable cause)
    • Method Detail

      • mapException

        @Deprecated
        public static ResponseException mapException​(String message,
                                                     int status)
        Deprecated.
        Maps an Exception based on the underlying status code
        Parameters:
        message - the message
        status - the status
        Returns:
        the response exception
      • mapException

        public static ResponseException mapException​(String message,
                                                     int status,
                                                     Throwable cause)
        Maps an Exception based on the underlying status code
        Parameters:
        message - the message
        status - the status
        cause - the cause
        Returns:
        the response exception
      • getStatus

        public int getStatus()
        Returns:
        the raw status code
      • setRequestInfo

        public void setRequestInfo​(HttpRequest<?> request)
      • setRequestId

        public void setRequestId​(String id)