HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Exceptions.h File Reference
#include "version.h"
#include <exception>
#include <sstream>
#include <string>
+ Include dependency graph for Exceptions.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openvdb::OPENVDB_VERSION_NAME::Exception
 

Namespaces

 openvdb
 
 openvdb::OPENVDB_VERSION_NAME
 

Macros

#define OPENVDB_EXCEPTION(_classname)
 
#define OPENVDB_THROW(exception, message)
 

Functions

 openvdb::OPENVDB_VERSION_NAME::OPENVDB_EXCEPTION (ArithmeticError)
 
 openvdb::OPENVDB_VERSION_NAME::OPENVDB_EXCEPTION (IndexError)
 
 openvdb::OPENVDB_VERSION_NAME::OPENVDB_EXCEPTION (IoError)
 
 openvdb::OPENVDB_VERSION_NAME::OPENVDB_EXCEPTION (KeyError)
 
 openvdb::OPENVDB_VERSION_NAME::OPENVDB_EXCEPTION (LookupError)
 
 openvdb::OPENVDB_VERSION_NAME::OPENVDB_EXCEPTION (NotImplementedError)
 
 openvdb::OPENVDB_VERSION_NAME::OPENVDB_EXCEPTION (ReferenceError)
 
 openvdb::OPENVDB_VERSION_NAME::OPENVDB_EXCEPTION (RuntimeError)
 
 openvdb::OPENVDB_VERSION_NAME::OPENVDB_EXCEPTION (TypeError)
 
 openvdb::OPENVDB_VERSION_NAME::OPENVDB_EXCEPTION (ValueError)
 

Macro Definition Documentation

#define OPENVDB_EXCEPTION (   _classname)
Value:
class OPENVDB_API _classname: public Exception \
{ \
public: \
_classname() noexcept: Exception( #_classname ) {} \
explicit _classname(const std::string& msg) noexcept: Exception( #_classname , &msg) {} \
}
#define OPENVDB_API
Definition: Platform.h:274

Definition at line 47 of file Exceptions.h.

#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); \
}
GLuint GLsizei const GLchar * message
Definition: glcorearb.h:2543
GLsizei const GLchar *const * string
Definition: glcorearb.h:814

Definition at line 74 of file Exceptions.h.