sol-cloud/cloud/common/common-base-model
smile c00541e7bb feat(common): add a global exception handler to optimize database error messages
- Introduce PostgreSQL-specific exception handling to make error messages more readable
- Parse unique-violation errors, extract the conflicting column and value, and inform the user
- Detect not-null violations and clearly indicate which fields are required
- Classify foreign-key violations, distinguishing between “referenced record missing” and “still being referenced” scenarios
- Add check-constraint hints to help users spot format or rule violations
- Parse length-exceeded errors and state the allowed maximum length
- Provide generic utilities for extracting key columns and constraint names from error messages
- Enhance logging for easier debugging and issue tracking
2025-10-02 11:07:42 +08:00
..
src/main/java/com/bgasol feat(common): add a global exception handler to optimize database error messages 2025-10-02 11:07:42 +08:00
pom.xml init 2025-02-12 17:22:25 +08:00