Encode additional ActionExecution failures with FailureDetails

Deletes an undetailed ActionExecutionException overload.

Deletes TargetOutOfDateException because its distinguished type is
nowhere meaningful.

RELNOTES: None.
PiperOrigin-RevId: 315842104
diff --git a/src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java b/src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java
index de31ed7..08d23db 100644
--- a/src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java
+++ b/src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java
@@ -1151,12 +1151,18 @@
   public void testSuccessfulActionsAreNotPublishedByDefault() {
     EventBusHandler handler = new EventBusHandler();
     eventBus.register(handler);
-
     ActionExecutedEvent failedActionExecutedEvent =
         new ActionExecutedEvent(
             ActionsTestUtil.DUMMY_ARTIFACT.getExecPath(),
             new ActionsTestUtil.NullAction(),
-            new ActionExecutionException("Exception", /* action= */ null, /* catastrophe= */ false),
+            new ActionExecutionException(
+                "Exception",
+                /* action= */ null,
+                /* catastrophe= */ false,
+                DetailedExitCode.of(
+                    FailureDetail.newBuilder()
+                        .setSpawn(Spawn.newBuilder().setCode(Code.EXECUTION_DENIED))
+                        .build())),
             ActionsTestUtil.DUMMY_ARTIFACT.getPath(),
             /* stdout= */ null,
             /* stderr= */ null,
@@ -1192,7 +1198,14 @@
         new ActionExecutedEvent(
             ActionsTestUtil.DUMMY_ARTIFACT.getExecPath(),
             new ActionsTestUtil.NullAction(),
-            new ActionExecutionException("Exception", /* action= */ null, /* catastrophe= */ false),
+            new ActionExecutionException(
+                "Exception",
+                /* action= */ null,
+                /* catastrophe= */ false,
+                DetailedExitCode.of(
+                    FailureDetail.newBuilder()
+                        .setSpawn(Spawn.newBuilder().setCode(Code.EXECUTION_DENIED))
+                        .build())),
             ActionsTestUtil.DUMMY_ARTIFACT.getPath(),
             /* stdout= */ null,
             /* stderr= */ null,