java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.lettuce.core.RedisException
io.lettuce.core.dynamic.CommandCreationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CommandMethodSyntaxException
public class CommandCreationException extends RedisException
Exception thrown if a command cannot be constructed from a
CommandMethod.- Since:
- 5.0
- Author:
- Mark Paluch
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description CommandCreationException(CommandMethod commandMethod, String msg)Create a newCommandCreationExceptiongivenCommandMethodand a message. -
Method Summary
Modifier and Type Method Description CommandMethodgetCommandMethod()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommandCreationException
Create a newCommandCreationExceptiongivenCommandMethodand a message.- Parameters:
commandMethod- must not benull.msg- must not benull.
-
-
Method Details
-
getCommandMethod
- Returns:
- the offending
CommandMethod.
-