AIIC AI Intelligence Centre

SOURCE-LINKED INTELLIGENCE

Retrofitting Code Using LLMs to Support Exceptional Behavior

arXiv · AI, language, vision and robotics · article · Sep 9, 2026 · UTC

Exception Related Code (ERC), which includes throw statements, conditions (if statements) that guard those throw statements, and try/catch blocks, is an essential component of software systems, allowing developers to detect and handle exceptional states that deviate from the expected program behavior. However, manually writing ERC across large codebases is tedious. We propose a novel task: retrofitting existing code with ERC. Namely, given code (without ERC) and Exceptional Behavior Tests (EBTs) (e.g., check if method throws InvalidArgumentException if null is given as the value to the argumen

Read original source ↗ Open in workspace

recordType
paper
region
Global

Evidence & attribution

First collected: 2026-09-20T19:32:24.350Z. This is not the publication date.