We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52ff4a2 commit 91d355cCopy full SHA for 91d355c
spring-shell-core/src/main/java/org/springframework/shell/CommandNotFound.java
@@ -16,6 +16,7 @@
16
17
package org.springframework.shell;
18
19
+import java.util.ArrayList;
20
import java.util.List;
21
import java.util.stream.Collectors;
22
@@ -34,4 +35,13 @@ public CommandNotFound(List<String> words) {
34
35
public String getMessage() {
36
return String.format("No command found for '%s'", words.stream().collect(Collectors.joining(" ")));
37
}
38
+
39
+ /**
40
+ * Gets a {@code words} in this exception.
41
+ *
42
+ * @return a words
43
+ */
44
+ public List<String> getWords(){
45
+ return new ArrayList<>(words);
46
+ }
47
0 commit comments