Skip to content

Commit e1699f5

Browse files
authored
Localizing EvaluatorBuilderImpl. (#247)
1 parent 4afa938 commit e1699f5

3 files changed

Lines changed: 1500 additions & 1676 deletions

File tree

‎java-debugger-api/src/main/java/com/intellij/java/debugger/engine/evaluation/EvaluateException.java‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,30 @@
1717

1818
import consulo.internal.com.sun.jdi.InvocationException;
1919
import consulo.internal.com.sun.jdi.ObjectReference;
20+
import consulo.localize.LocalizeValue;
2021
import consulo.logging.Logger;
22+
import jakarta.annotation.Nonnull;
2123
import jakarta.annotation.Nullable;
2224

2325
public class EvaluateException extends Exception {
2426
private static final Logger LOG = Logger.getInstance(EvaluateException.class);
2527
private ObjectReference myTargetException;
2628

29+
public EvaluateException(@Nonnull LocalizeValue message) {
30+
this(message.get());
31+
}
32+
2733
public EvaluateException(String message) {
2834
super(message);
2935
if (LOG.isDebugEnabled()) {
3036
LOG.debug(message);
3137
}
3238
}
3339

40+
public EvaluateException(@Nonnull LocalizeValue msg, Throwable th) {
41+
this(msg.get(), th);
42+
}
43+
3444
public EvaluateException(String msg, Throwable th) {
3545
super(msg, th);
3646
if (th instanceof EvaluateException evaluateException) {

0 commit comments

Comments
 (0)