Class ProviderErrorException

Inheritance Relationships

Base Type

  • public std::runtime_error

Class Documentation

class ProviderErrorException : public std::runtime_error

Exception thrown when a provider returns a non-404 error from its ErrorInfo contract and the caller needs to preserve the original http_status / code on the way up to the handler. TopicNotAvailableException is only appropriate for 404-class errors; everything else must go through this type so 5xx is not collapsed to 404.

Public Functions

inline explicit ProviderErrorException(ErrorInfo info)
inline const ErrorInfo &info() const noexcept