Expand description
Error handling and sanitization
This module provides utilities for sanitizing error messages to prevent information disclosure to clients while logging full details internally.
Functionsยง
- get_
client_ error_ message - Get a user-friendly error message
- is_
safe_ error - Check if an error should be shown to the client (for known safe errors)
- sanitize_
error - Sanitize error messages for client responses
- sanitize_
error_ with_ message - Sanitize error with a custom client message