OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
Loading...
Searching...
No Matches
openpit::Error Class Reference

#include <error.hpp>

Inheritance diagram for openpit::Error:
openpit::ConfigureError openpit::EngineBuildError

Public Member Functions

std::optional< OpenPitParamErrorCode > Code () const noexcept
 Error (std::string message)
 Error (std::string message, OpenPitParamErrorCode code)
const std::string & Message () const noexcept
const char * what () const noexcept override

Constructor & Destructor Documentation

◆ Error() [1/2]

openpit::Error::Error ( std::string message)
inlineexplicit

◆ Error() [2/2]

openpit::Error::Error ( std::string message,
OpenPitParamErrorCode code )
inline

Member Function Documentation

◆ Code()

std::optional< OpenPitParamErrorCode > openpit::Error::Code ( ) const
inlinenodiscardnoexcept

◆ Message()

const std::string & openpit::Error::Message ( ) const
inlinenodiscardnoexcept

◆ what()

const char * openpit::Error::what ( ) const
inlinenodiscardoverridenoexcept