12 lines
342 B
C++
12 lines
342 B
C++
#pragma once
|
|
|
|
#include <exception>
|
|
#include <stdexcept>
|
|
|
|
// PostgreSQL или Valkey недоступны либо не ответили вовремя: клиент получает 503.
|
|
struct DependencyUnavailable : std::runtime_error {
|
|
using std::runtime_error::runtime_error;
|
|
};
|
|
|
|
bool is_dependency_failure(const std::exception& e);
|