Skip to content

DatabaseOperations should handle connection failures gracefully #89

@leonibr

Description

@leonibr

Problem

The DatabaseOperations class currently throws unhandled PostgresException when database connections fail, which can cause application crashes and poor user experience in production environments.

Current Behavior

When the database is unavailable or authentication fails, the DatabaseOperations class throws exceptions like:

Npgsql.PostgresException (0x80004005): 28P01: 

This causes the entire caching operation to fail and can propagate up the call stack, potentially crashing the application.

Proposed Solution

Modify the DatabaseOperations class to handle connection failures gracefully

Implementation Considerations

  • Maintain backward compatibility where possible

Sub-issues

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions