Class PipelineException

    • Constructor Detail

      • PipelineException

        public PipelineException​(String message)
        Create an exception object with a message.
        Parameters:
        message - Message to associate with exception
      • PipelineException

        public PipelineException​(String message,
                                 Throwable cause)
        Create an exception object with a message and chain it to another exception.
        Parameters:
        message - Message to associate with exception
        cause - Exception to chain to this exception
      • PipelineException

        public PipelineException​(String message,
                                 Throwable cause,
                                 Context<K,​V> context,
                                 Command<K,​V> failedCommand)
        Constructs a new ChainException with references to the Context and Command associated with the exception being wrapped (cause).
        Type Parameters:
        K - Context key type
        V - Context value type
        Parameters:
        message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
        cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
        context - The Context object passed to the Command in which the exception occurred.
        failedCommand - The Command object in which the exception was thrown.
    • Method Detail

      • getContext

        public Map<?,​?> getContext()
        Returns:
        The context object passed when the Command threw an exception.
      • getFailedCommand

        public Command<?,​?> getFailedCommand()
        Returns:
        The Command object in which the original exception was thrown.