3.5.1 — 2025-07-28¶
← 3.5.2 | 3.5.0 → | ↑ 3.x series
Bug Fixes¶
HTTP Status Code Handling¶
- Status Code Name Mismatch - Fixed critical issue in FastAPIExceptionHandler where
http_status_codewas incorrectly referenced- Changed from
exception.http_status_codetoexception.http_status_code_valuefor proper status code retrieval - Resolved HTTP status code name mismatch that was causing incorrect error responses
- Improved error handling consistency in FastAPI exception processing
- Changed from
Improvements¶
Protobuf DTO Runtime Type Safety¶
- Runtime Type Checking - Enhanced BaseProtobufDTO with comprehensive runtime type validation
- Added runtime type checking in
from_proto()method to validate input parameter types - Implemented proper type validation before protobuf message processing
- Enhanced error messages with clear type mismatch information
- Added runtime type checking in
Custom Exception Integration¶
- Custom Exception Handling - Replaced generic TypeError with domain-specific InvalidEntityTypeError
- Updated protobuf DTO type validation to use
InvalidEntityTypeErrorfor better error categorization - Improved error context with expected and actual type information
- Enhanced error handling consistency across the protobuf DTO system
- Updated protobuf DTO type validation to use
Code Quality Enhancements¶
- Error Handling Consistency - Standardized error handling patterns across protobuf DTO operations
- Improved error message clarity and debugging capabilities
- Enhanced type safety with proper exception chaining
- Maintained backward compatibility while improving error reporting