Package io.lettuce.core.dynamic
Class CommandCreationException
- 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 aCommandMethod
.- Since:
- 5.0
- Author:
- Mark Paluch
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommandCreationException(CommandMethod commandMethod, String msg)
Create a newCommandCreationException
givenCommandMethod
and a message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandMethod
getCommandMethod()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CommandCreationException
public CommandCreationException(CommandMethod commandMethod, String msg)
Create a newCommandCreationException
givenCommandMethod
and a message.- Parameters:
commandMethod
- must not benull
.msg
- must not benull
.
-
-
Method Detail
-
getCommandMethod
public CommandMethod getCommandMethod()
- Returns:
- the offending
CommandMethod
.
-
-