37 #ifndef Alembic_Abc_ErrorHandler_h
38 #define Alembic_Abc_ErrorHandler_h
64 : m_policy( kThrowPolicy )
74 void operator()( std::exception &iExc,
80 void operator()( UnknownExceptionFlag iUef,
88 bool valid()
const {
return ( m_errorLog ==
"" ); }
90 void clear() { m_errorLog =
""; }
97 m_message( iCtxMsg ) {}
101 m_handler( iExc, m_message );
106 m_handler( iMsg, m_message );
111 m_handler( iUef, m_message );
117 const char *m_message;
172 #define ALEMBIC_ABC_SAFE_CALL_BEGIN( CONTEXT ) \
175 ::Alembic::Abc::ErrorHandler::Context \
176 __err( this->getErrorHandler(), ( CONTEXT ) ); \
181 #define ALEMBIC_ABC_SAFE_CALL_END_RESET() \
183 catch ( std::exception &exc ) \
191 __err( ::Alembic::Abc:: \
192 ErrorHandler::kUnknownException ); \
198 #define ALEMBIC_ABC_SAFE_CALL_END() \
200 catch ( std::exception &exc ) \
206 __err( ::Alembic::Abc:: \
207 ErrorHandler::kUnknownException ); \
void operator()(const std::string &iMsg)
Alembic::Util::shared_ptr< ObjectWriter > ObjectWriterPtr
GLsizei const GLchar *const * string
Alembic::Util::shared_ptr< ObjectReader > ObjectReaderPtr
Alembic::Util::shared_ptr< ArrayPropertyReader > ArrayPropertyReaderPtr
void setPolicy(Policy iPolicy)
void operator()(UnknownExceptionFlag iUef)
Alembic::Util::shared_ptr< CompoundPropertyReader > CompoundPropertyReaderPtr
ErrorHandler::Policy GetErrorHandlerPolicy(SOMETHING iSomething, const Argument &iArg0, const Argument &iArg1=Argument(), const Argument &iArg2=Argument(), const Argument &iArg3=Argument())
void operator()(std::exception &iExc)
Alembic::Util::shared_ptr< ArrayPropertyWriter > ArrayPropertyWriterPtr
Alembic::Util::shared_ptr< ScalarPropertyWriter > ScalarPropertyWriterPtr
const std::string getErrorLog() const
Alembic::Util::shared_ptr< ArchiveReader > ArchiveReaderPtr
Smart Ptrs to Readers.
LeafData & operator=(const LeafData &)=delete
ErrorHandler(Policy iPolicy)
Alembic::Util::shared_ptr< ScalarPropertyReader > ScalarPropertyReaderPtr
Alembic::Util::shared_ptr< ArchiveWriter > ArchiveWriterPtr
Smart Ptrs to Writers.
#define ALEMBIC_VERSION_NS
Alembic::Util::shared_ptr< CompoundPropertyWriter > CompoundPropertyWriterPtr
Context(ErrorHandler &iEhnd, const char *iCtxMsg)