public class PipelineException extends RuntimeException
Command or Pipeline.| 构造器和说明 |
|---|
PipelineException(String message)
Create an exception object with a message.
|
PipelineException(String message,
Throwable cause)
Create an exception object with a message and chain it to another exception.
|
PipelineException(String message,
Throwable cause,
Context<K,V> context,
Command<K,V> failedCommand)
|
| 限定符和类型 | 方法和说明 |
|---|---|
Map<?,?> |
getContext() |
Command<?,?> |
getFailedCommand() |
public PipelineException(String message)
message - Message to associate with exceptionpublic PipelineException(String message, Throwable cause)
message - Message to associate with exceptioncause - Exception to chain to this exceptionpublic PipelineException(String message, Throwable cause, Context<K,V> context, Command<K,V> failedCommand)
Context
and Command associated with the exception being wrapped (cause).K - Context key typeV - Context value typemessage - 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.Copyright © 2021. All rights reserved.