|
Legion Runtime
|
#include <exception.h>
Public Member Functions | |
| Exception (ExceptionType type) | |
| Exception (const Exception &rhs)=delete | |
| Exception (Exception &&rhs) | |
| Exception & | operator= (const Exception &rhs)=delete |
| Exception & | operator= (Exception &&rhs)=delete |
| void | clear (void) |
| void | record_backtrace (const Realm::Backtrace &backtrace) |
| size_t | size (void) const |
| const char * | data (void) const |
| operator std::string_view (void) const | |
Public Attributes | |
| const ExceptionType | type |
Protected Member Functions | |
| virtual int_type | overflow (int_type c) override |
This class allows for users to package up any kind of data and for raising an exception. It implements the std::streambuf interface so that you can make input/output streams for accessing it. You can also get access to the underlying buffer of data for interpreting the data directly in case you serialized up data directly (useful if you've done something like pickled a python exception). DO NOT THROW THIS LIKE A C++ EXCEPTION OR YOUR PROGRAM WILL CRASH.