forked from mtusi2026/mtusi2026lab6
lab6
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include <exception>
|
||||
#include <stdexcept>
|
||||
|
||||
// PostgreSQL или Valkey недоступны либо не ответили вовремя: клиент получает 503.
|
||||
struct DependencyUnavailable : std::runtime_error {
|
||||
using std::runtime_error::runtime_error;
|
||||
};
|
||||
|
||||
struct AttachmentFailed : std::runtime_error {
|
||||
AttachmentFailed() : std::runtime_error("attachment processing failed") {}
|
||||
};
|
||||
|
||||
bool is_dependency_failure(const std::exception& e);
|
||||
Reference in New Issue
Block a user