Package org.springframework.shell
Class CommandNotFound
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.shell.CommandNotFound
- All Implemented Interfaces:
Serializable
A result to be handled by the
ResultHandler
when no command could be mapped to user input- See Also:
-
Constructor Summary
ConstructorDescriptionCommandNotFound
(List<String> words) CommandNotFound
(List<String> words, Map<String, CommandRegistration> registrations, String text) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommandNotFound
-
CommandNotFound
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getWords
Gets awords
in this exception.- Returns:
- a words
-
getRegistrations
Gets command registrations known when this error was created.- Returns:
- known command registrations
-
getText
Gets a raw text input.- Returns:
- raw text input
-