Skip to content

[WIP]Develop error framework v2#2596

Open
Zhi-a wants to merge 8 commits intodevelopfrom
develop_error_framework_v2
Open

[WIP]Develop error framework v2#2596
Zhi-a wants to merge 8 commits intodevelopfrom
develop_error_framework_v2

Conversation

@Zhi-a
Copy link
Contributor

@Zhi-a Zhi-a commented Mar 2, 2026

No description provided.

…ror management across applications. Introduced AppException for specific error codes and messages, and added middleware for centralized error handling. Updated existing services to utilize AppException for error reporting.
…o 401, improved exception handling middleware to return proper HTTP status, and refined error response creation. Enhanced frontend error handling to manage session expiration and specific error codes more effectively.
…omprehensive tests for ErrorCode enum and ERROR_CODE_HTTP_STATUS mapping, as well as for ExceptionHandlerMiddleware. Ensured proper mapping of HTTP status codes to error codes and validated error response creation functions.
…omprehensive tests for ErrorCode enum and ERROR_CODE_HTTP_STATUS mapping, as well as for ExceptionHandlerMiddleware. Ensured proper mapping of HTTP status codes to error codes and validated error response creation functions.
…NVALID from 401 to 400, enhanced exception handling middleware to better manage AppException attributes, and improved unit tests to reflect these changes.
@Zhi-a Zhi-a requested review from Phinease and WMC001 as code owners March 2, 2026 07:12
@Zhi-a Zhi-a force-pushed the develop_error_framework_v2 branch 4 times, most recently from b71f8c5 to 20ca44a Compare March 2, 2026 12:08
…thErrorHandler` to accept variable arguments, ensuring better flexibility. Adjusted unit tests for `DIFY_CONFIG_INVALID` to correctly map to HTTP 400, and reorganized imports in test files for clarity.
@Zhi-a Zhi-a force-pushed the develop_error_framework_v2 branch from 20ca44a to 58a573b Compare March 2, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant