Skip to content

Commit 654f504

Browse files
l46kokcopybara-github
authored andcommitted
Remove InterpreterException
PiperOrigin-RevId: 719502577
1 parent 5a07b67 commit 654f504

File tree

3 files changed

+4
-133
lines changed

3 files changed

+4
-133
lines changed

runtime/src/main/java/dev/cel/runtime/BUILD.bazel

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ BASE_SOURCES = [
1212
"DefaultMetadata.java",
1313
"FunctionResolver.java",
1414
"FunctionOverload.java",
15-
"InterpreterException.java",
1615
"MessageProvider.java",
1716
"Registrar.java",
1817
"ResolvedOverload.java",
@@ -59,15 +58,11 @@ java_library(
5958
":metadata",
6059
"//:auto_value",
6160
"//common",
62-
"//common:error_codes",
63-
"//common:runtime_exception",
6461
"//common/annotations",
65-
"//common/internal:safe_string_formatter",
6662
"@maven//:com_google_code_findbugs_annotations",
6763
"@maven//:com_google_errorprone_error_prone_annotations",
6864
"@maven//:com_google_guava_guava",
6965
"@maven//:com_google_protobuf_protobuf_java",
70-
"@maven//:org_jspecify_jspecify",
7166
],
7267
)
7368

runtime/src/main/java/dev/cel/runtime/CelEvaluationExceptionBuilder.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,10 @@ public CelEvaluationExceptionBuilder setMetadata(Metadata metadata, long exprId)
6060
*/
6161
@Internal
6262
public CelEvaluationException build() {
63-
// TODO: Temporary until InterpreterException removal is complete
64-
if (!message.startsWith("evaluation error")) {
65-
message = SafeStringFormatter.format("evaluation error%s: %s", errorLocation, message);
66-
}
67-
68-
return new CelEvaluationException(message, cause, errorCode);
63+
return new CelEvaluationException(
64+
SafeStringFormatter.format("evaluation error%s: %s", errorLocation, message),
65+
cause,
66+
errorCode);
6967
}
7068

7169
/**

runtime/src/main/java/dev/cel/runtime/InterpreterException.java

Lines changed: 0 additions & 122 deletions
This file was deleted.

0 commit comments

Comments
 (0)