Project

General

Profile

Actions

Improvement #13331

open

Introduce JAX-RS Exception Mapper to Handle Exceptions in API Layers

Added by Rajitha Kumara 29 days ago. Updated 21 days ago.

Status:
New
Priority:
Low
Assignee:
-
Start date:
04/06/2025
Due date:
% Done:

0%

Estimated time:
Device Type:
Component:
Type:
QA Start Time:
QA Due Time:
QA Estimated Time(Hours):

Description

The existing exception handling mechanism duplicates the logic for constructing and sending error responses across multiple components or layers of the application.
Introduce a centralized Exception Mapper (or Exception Handler) mechanism to standardize and streamline error handling.
This approach will intercept exceptions globally and convert them into consistent, structured error responses.

Resources:
https://dennis-xlc.gitbooks.io/restful-java-with-jax-rs-2-0-2rd-edition/content/en/part1/chapter7/exception_handling.html

Actions

Also available in: Atom PDF