NeuralPlus 0.2.0
A small C++17 SDK for AI clients, sessions, tools, and tracing
Loading...
Searching...
No Matches
neuralplus::ProviderError Class Referencefinal

A provider returned an unsuccessful or malformed response. More...

#include <types.hpp>

Inheritance diagram for neuralplus::ProviderError:
neuralplus::Error

Public Member Functions

 ProviderError (std::string message, Provider provider, int status, std::string code={}, std::string request_id={})
 Creates an error with normalized provider and HTTP correlation details.
 
Provider provider () const noexcept
 Returns the provider that produced the error.
 
int status () const noexcept
 Returns the HTTP status, or zero when no status was available.
 
const std::string & code () const noexcept
 Returns the provider-specific error code.
 
const std::string & request_id () const noexcept
 Returns the provider request identifier when supplied.
 

Detailed Description

A provider returned an unsuccessful or malformed response.


The documentation for this class was generated from the following file: