Exception Handling in a RESTful Service with @ControllerAdvice
Company: J.P. Morgan
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Onsite
Overview: This question evaluates a candidate's understanding of centralized error handling in RESTful API design, specifically using framework-level cross-cutting mechanisms to enforce a consistent error contract. It tests the ability to map exception types to appropriate HTTP status codes and design response structures that avoid leaking internal implementation details.
Read the full J.P. Morgan Software Engineer interview experience this question came from