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.
2 parents 33fa7e2 + 43edeb9 commit f0e8373Copy full SHA for f0e8373
substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/util/UserError.java
@@ -57,6 +57,15 @@ protected UserException(Iterable<String> messages) {
57
this.messages = messages;
58
}
59
60
+ public UserException(String msg, Throwable throwable) {
61
+ this(Collections.singletonList(msg), throwable);
62
+ }
63
+
64
+ protected UserException(Iterable<String> messages, Throwable throwable) {
65
+ super(String.join(System.lineSeparator(), messages), throwable);
66
+ this.messages = messages;
67
68
69
public Iterable<String> getMessages() {
70
return messages;
71
0 commit comments