Task Summary
amber/src/main/scala/org/apache/texera/amber/error/ErrorUtils.scala currently has ~24% unit-test coverage and no dedicated spec. Add unit tests for ErrorUtils covering safely (ControlThrowable rethrow vs. handler delegation), mkConsoleMessage (with and without stack frames), mkControlError (cause vs. no-cause branches and the "at " stacktrace formatting), reconstructThrowable (Python vs. Scala language, with and without errorDetails, stack-trace regex parsing), getStackTraceWithAllCauses (top-level header vs. nested "Caused by:" recursion), and getOperatorFromActorIdOpt (empty option vs. parsed actor name).
Task Type
Task Summary
amber/src/main/scala/org/apache/texera/amber/error/ErrorUtils.scalacurrently has ~24% unit-test coverage and no dedicated spec. Add unit tests forErrorUtilscoveringsafely(ControlThrowable rethrow vs. handler delegation),mkConsoleMessage(with and without stack frames),mkControlError(cause vs. no-cause branches and the"at "stacktrace formatting),reconstructThrowable(Python vs. Scala language, with and withouterrorDetails, stack-trace regex parsing),getStackTraceWithAllCauses(top-level header vs. nested "Caused by:" recursion), andgetOperatorFromActorIdOpt(empty option vs. parsed actor name).Task Type