Module error_handling

Module error_handling 

Source
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