42#ifndef Alembic_Util_Exception_h
43#define Alembic_Util_Exception_h
45#include <Alembic/Util/Foundation.h>
51namespace ALEMBIC_VERSION_NS {
57class Exception :
public std::string,
public std::exception
62 Exception() throw() : std::
string(
"" ), std::exception() {}
66 explicit Exception(
const std::string &str )
throw()
67 : std::string( str ), std::exception() {}
72 : std::string( exc.c_str() ), std::exception() {}
80 virtual const char *
what()
const throw() {
return c_str(); }
87#define ABC_THROW( TEXT ) \
90 std::stringstream sstr; \
92 Alembic::Util::Exception exc( sstr.str() ); \
100#define ALEMBIC_THROW( TEXT ) ABC_THROW( TEXT )
104using namespace ALEMBIC_VERSION_NS;
virtual const char * what() const
Inherited from std::exception, this returns a non-modifiable character string describing the nature o...
Definition Exception.h:80
Exception(const std::string &str)
Creates exception with an explicit message string. ...
Definition Exception.h:66
Exception(const Exception &exc)
Copies exception. ...
Definition Exception.h:71
virtual ~Exception()
Destructor is empty, but virtual to support polymorphic destruction of data in any derived classes.
Definition Exception.h:76
Exception()
default constructor creates exception with empty message string
Definition Exception.h:62
Alembic namespace ...
Definition ArchiveInfo.cpp:39