exceptions.cpp
Go to the documentation of this file.
40 exception::exception(const char* kind, const char* what, const char* message, const char* inikey, bool fatal) : 51 exception::exception(const char* kind, const char* what, const char* message, const char* inikey, bool fatal, 64 exception::exception(const char* kind, const char* what, const char* message, const char* inikey, bool fatal, 78 exception::exception(const char* kind, const char* what, const char* message, const char* inikey, bool fatal, 93 exception::exception(const char* kind, const char* what, const char* message, const char* inikey, bool fatal, 109 exception::exception(const char* kind, const char* what, const char* message, const char* inikey, bool fatal, 126 exception::exception(const char* kind, const char* what, const char* message, const char* inikey, bool fatal, 144 exception::exception(const char* kind, const char* what, const char* message, const char* inikey, bool fatal, 163 exception::exception(const char* kind, const char* what, const char* message, const char* inikey, bool fatal, std::set<LogTag> tags) : 233 std::map<const char*,exception*>& exception::exception_map() 258 for (std::set<LogTag>::iterator it = myLogTags.begin(); it != myLogTags.end(); ++it) { logger() << *it; } 312 error::error(const char* message, const char* inikey, LogTag t1, LogTag t2, LogTag t3, LogTag t4) 315 error::error(const char* message, const char* inikey, LogTag t1, LogTag t2, LogTag t3, LogTag t4, LogTag t5) 318 error::error(const char* message, const char* inikey, LogTag t1, LogTag t2, LogTag t3, LogTag t4, LogTag t5, LogTag t6) 343 warning::warning(const char* message, const char* inikey, LogTag t1, LogTag t2, LogTag t3, LogTag t4) 346 warning::warning(const char* message, const char* inikey, LogTag t1, LogTag t2, LogTag t3, LogTag t4, LogTag t5) 349 warning::warning(const char* message, const char* inikey, LogTag t1, LogTag t2, LogTag t3, LogTag t4, LogTag t5, LogTag t6) 350 : exception("WARNING", "GAMBIT warning", message, inikey, false, warn, t1, t2, t3, t4, t5, t6) {} 398 invalid_point_exception::invalid_point_exception() : special_exception("GAMBIT invalid point."), myThrower(NULL) {} 417 if (temp == NULL) utils_error().raise(LOCAL_INFO, "No throwing functor in invalid_point_exception."); 443 full_msg << "Sorry, you cannot raise an invalid point exception inside an OpenMP block." << endl 461 cerr << "An invalid_point exception is fatal inside an OpenMP block. " << endl << what() << endl << message() << endl; 496 cerr << "GAMBIT has exited with fatal exception: Piped_invalid_point::check() called inside an OpenMP block." << endl 497 << "Piped exceptions may be requested inside OpenMP blocks, but should only be checked outside the block." << endl; 513 halt_loop_exception::halt_loop_exception() : special_exception("Immediate halt of GAMBIT loop requested.") {} 519 invalid_loop_iteration_exception::invalid_loop_iteration_exception() : special_exception("GAMBIT invalid loop iteration.") {} 524 SilentShutdownException::SilentShutdownException(const std::string& message) : myWhat(message) {} 585 cerr << "GAMBIT has exited with fatal exception: Piped_exceptions::check() called inside an OpenMP block." << endl 586 << "Piped exceptions may be requested inside OpenMP blocks, but should only be checked outside the block." << endl; error(const char *, const char *) ConstructorsConstructor without log tags. Definition: exceptions.cpp:300 Piped_exceptions piped_errors Global instance of Piped_exceptions class for errors. General small utility macros. std::string myMessage The message passed when this exception is raised. Definition: exceptions.hpp:224 std::pair< std::string, std::string > description Definition: exceptions.hpp:306 Threadsafe exception class declarations. void request(std::string origin, std::string message) Request an exception. Definition: exceptions.cpp:547 Piped_exceptions piped_warnings Global instance of Piped_exceptions class for warnings. HardShutdownException(const std::string &message) HardShutdownException member functions. Definition: exceptions.cpp:534 STL namespace. virtual const char * what() const Retrieve the identity of the exception. Definition: exceptions.cpp:366 Logging access header for GAMBIT. bool inquire() Check whether any exceptions were requested without handling them. Definition: exceptions.cpp:607 std::string message() Retrieve the message that this exception was raised with. Definition: exceptions.cpp:374 functor * thrower() Retrieve pointer to the functor that threw the invalid point exception. Definition: exceptions.cpp:410 Piped_invalid_point piped_invalid_point Global instance of piped invalid point class. Definition: exceptions.cpp:544 Definition: log_tags.hpp:38 Definition: log_tags.hpp:41 virtual void raise(const std::string &) Raise the exception, i.e. throw it. Exact override of base method. Definition: exceptions.cpp:422 functor * myThrower The functor responsible for throwing this exception. Definition: exceptions.hpp:235 GAMBIT special exception class. Not logged, meant for always catching. Definition: exceptions.hpp:194 Definition: log_tags.hpp:37 const Logging::endofmessage EOM Explicit const instance of the end of message struct in Gambit namespace. Definition: logger.hpp:100 EXPORT_SYMBOLS Logging::LogMaster & logger() Function to retrieve a reference to the Gambit global log object. Definition: logger.cpp:95 Definition: log_tags.hpp:40 virtual const char * what() const Definition: exceptions.cpp:525 virtual void raise(const std::string &) Raise the exception, i.e. throw it. Definition: exceptions.cpp:385 Gambit piped invalid point exception class. Definition: exceptions.hpp:282 A simple C++ wrapper for the MPI C bindings. void check(exception &excep) Check whether any exceptions were requested, and raise them. Definition: exceptions.cpp:564 warning(const char *, const char *) ConstructorsConstructor without log tags. Definition: exceptions.cpp:331 void check() Check whether an exception was requested, and throw it if necessary. Definition: exceptions.cpp:481 Exception objects required for standalone compilation. void set_thrower(functor *) Set the pointer to the functor that threw the invalid point exception. Definition: exceptions.cpp:401 invalid_point_exception & invalid_point() Invalid point exceptions. Definition: standalone_error_handlers.cpp:83 MPIShutdownException(const std::string &message) MPIShutdownException member functions. Definition: exceptions.cpp:539 const char * myWhat What this exception is (for returning with what method). Definition: exceptions.hpp:219 SoftShutdownException(const std::string &message) SoftShutdownException member functions. Definition: exceptions.cpp:529 void abort_here_and_now() Cause the code to print the exception and abort. Definition: exceptions.cpp:456 |