Specialized error handler for REST API responses.
SnowflakeRestApiErrorHandler()Safely parse JSON response with detailed error handling.
Handles regular JSON responses and detects SSE format (which usually indicates a configuration issue where streaming was enabled unexpectedly).
Async version of safe JSON response parsing.
Handles regular JSON responses and detects SSE format (which usually indicates a configuration issue where streaming was enabled unexpectedly).
Handle REST API response parsing errors with rich context.
Log error and return standardized JSON error response.
Log error and re-raise it.
Create standardized ChatResult for errors.
Create ChatResult from error message string.
Log an error with standardized format.
Log error and return a fallback string message.
Log warning for failed operation with fallback.
Log info with standardized format.
Log debug with standardized format.
Log operation start with standardized format.
Log operation success with standardized format.