HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Exceptions.h File Reference
#include <exception>
#include <string>
#include <iostream>
#include <openvdb/version.h>
+ 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 (IllegalValueException)
 
 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
Helper macros for defining library symbol visibility.
Definition: Platform.h:194

Definition at line 73 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); \
}
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
GLuint GLsizei const GLchar * message
Definition: glcorearb.h:2542

Definition at line 101 of file Exceptions.h.