Legion Runtime
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Legion::Exception Class Reference

#include <exception.h>

Inheritance diagram for Legion::Exception:

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
 

Detailed Description

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.


The documentation for this class was generated from the following file: