NAH 1.0.6
Native Application Host - Library API Reference
Loading...
Searching...
No Matches
nah::Error Class Reference

Error type with code and message. More...

#include <nahhost.hpp>

Public Member Functions

ErrorCode code () const
 
 Error (ErrorCode code, std::string message)
 
const std::string & message () const
 
std::string toString () const
 
ErrorwithContext (const std::string &context)
 

Detailed Description

Error type with code and message.

Definition at line 77 of file nahhost.hpp.

Constructor & Destructor Documentation

◆ Error()

nah::Error::Error ( ErrorCode  code,
std::string  message 
)
inline

Definition at line 79 of file nahhost.hpp.

Member Function Documentation

◆ code()

ErrorCode nah::Error::code ( ) const
inline

◆ message()

const std::string & nah::Error::message ( ) const
inline

◆ toString()

std::string nah::Error::toString ( ) const
inline

◆ withContext()

Error & nah::Error::withContext ( const std::string &  context)
inline

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