Class ResultException
Defined in File ContinuationUtils.h
Inheritance Relationships
Base Type
public csp::common::continuations::ExpectedExceptionBase
(Class ExpectedExceptionBase)
Class Documentation
-
class ResultException : public csp::common::continuations::ExpectedExceptionBase
An exception class for API request results.
This template class captures the result object alongside the exception. It’s ideal for handling errors from HTTP requests where specific result codes, HTTP status, and failure reasons need to be preserved.
Public Functions
-
inline ResultException(const std::string &Message, const csp::systems::ResultBase &Result)
-
inline virtual const ExceptionType GetExceptionType() const override
-
inline const csp::systems::ResultBase &GetResult() const
-
inline ResultException(const std::string &Message, const csp::systems::ResultBase &Result)