Exception Handling
Graceful response handling
GlobalExceptionHandler: Centralized handling of exceptions, capturing and processing them uniformly.ApiResponse: Standardizes the response data format for APIs. A normal API response includes amessageor an Object data, with acodeof 200.- Custom Exceptions (Inheriting from
BaseException): Custom exceptions created by inheriting fromBaseException. These exceptions are associated with specificstatusCodevalues and loglevel. Then, custom exceptions can be thrown usingthrow new xxxException.
Exception Capture and Monitoring
Sentry Integration
Modify the configuration file sentry.properties