Vowpal Wabbit
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
errno_handling.h File Reference
#include "vw/common/vw_exception.h"
#include <sstream>
#include <string>

Namespaces

namespace  VW
 
namespace  VW::io
 

Macros

#define THROWERRNO(args)
 

Functions

std::string VW::io::strerror_to_string (int error_number)
 

Macro Definition Documentation

◆ THROWERRNO

#define THROWERRNO (   args)
Value:
{ \
std::ostringstream __msg; \
__msg << args; \
__msg << ", errno = " << VW::io::strerror_to_string(errno); \
throw VW::vw_exception(VW_FILENAME, __LINE__, __msg.str()); \
}
Definition: vw_exception.h:33
std::string strerror_to_string(int error_number)
#define VW_FILENAME
Definition: vw_exception.h:25