Class ConnectorException

    • Constructor Detail

      • ConnectorException

        public ConnectorException​(String responseCode,
                                  String message)
        Creates a new ConnectorException, with a provided response code, message and an empty exception context.
        Parameters:
        responseCode - exception response code
        message - exception message
      • ConnectorException

        public ConnectorException​(ConnectorResponse response)
        Creates a new ConnectorException, with a provided response and an empty exception context.
        Parameters:
        response - exception response
      • ConnectorException

        public ConnectorException​(String responseCode,
                                  String message,
                                  ExceptionContext context)
        Creates a new ConnectorException, with a provided response code, message and exception context.
        Parameters:
        responseCode - exception response code
        message - exception message
        context - exception context
      • ConnectorException

        public ConnectorException​(ConnectorResponse response,
                                  ExceptionContext context)
        Creates a new ConnectorException, with a provided response and exception context.
        Parameters:
        response - exception response
        context - exception context
      • ConnectorException

        public ConnectorException​(String responseCode,
                                  String message,
                                  Throwable cause)
        Creates a new ConnectorException, with a provided response code, message, an empty exception context and an exception cause.
        Parameters:
        responseCode - exception response code
        message - exception message
        cause - exception cause
      • ConnectorException

        public ConnectorException​(ConnectorResponse response,
                                  Throwable cause)
        Creates a new ConnectorException, with a provided response and an exception cause.
        Parameters:
        response - exception response
        cause - exception cause
      • ConnectorException

        public ConnectorException​(String responseCode,
                                  String message,
                                  ExceptionContext context,
                                  Throwable cause)
        Creates a new ConnectorException, with a provided response code, message, exception context and an exception cause.
        Parameters:
        responseCode - exception response code
        message - exception message
        context - exception context
        cause - exception cause
      • ConnectorException

        public ConnectorException​(ConnectorResponse response,
                                  ExceptionContext context,
                                  Throwable cause)
        Creates a new ConnectorException, with a provided response, exception context and an exception cause.
        Parameters:
        response - exception response
        context - exception context
        cause - exception cause
    • Method Detail

      • getResponse

        public ConnectorResponse getResponse()
        Connector response of this exception.
        Returns:
        underlying response of this exception
      • getContext

        public ExceptionContext getContext()
        Context of this exception.
        Returns:
        context of this exception