#include "version.h"
#include <exception>
#include <sstream>
#include <string>
Go to the source code of this file.
◆ OPENVDB_EXCEPTION
      
        
          | #define OPENVDB_EXCEPTION | ( |  | _classname | ) |  | 
      
 
Value:
{ \
public: \
    _classname() noexcept: Exception( #_classname ) {} \
    explicit _classname(const std::string& msg) noexcept: Exception( #_classname , &msg) {} \
}
 
 
 
◆ OPENVDB_THROW
      
        
          | #define OPENVDB_THROW | ( |  | exception, | 
        
          |  |  |  | message ) | 
      
 
Value:{ \
    std::string _openvdb_throw_msg; \
    try { \
        std::ostringstream _openvdb_throw_os; \
        _openvdb_throw_os << message; \
        _openvdb_throw_msg = _openvdb_throw_os.str(); \
    } catch (...) {} \
    throw exception(_openvdb_throw_msg); \
}