bpf::RuntimeException class

High-level exception

Base classes

class Exception

Derived classes

class EvalException
class IOException
class JsonException final
class ClassCastException
class ParseException
class ModuleException final
class OSException final

Constructors, destructors, conversion operators

~RuntimeException() override
RuntimeException(const String& type, const String& message)
RuntimeException(const RuntimeException& other) noexcept

Public functions

auto operator=(const RuntimeException& other) -> RuntimeException& noexcept
auto Message() const -> const String& noexcept
auto Type() const -> const char* override noexcept
void Print() const override noexcept

Function documentation

bpf::RuntimeException::RuntimeException(const String& type, const String& message)

Parameters
type exception type name suffixed with "Exception"
message exception message string

Constructs a high-level exception

bpf::RuntimeException::RuntimeException(const RuntimeException& other) noexcept

Copy constructor

RuntimeException& bpf::RuntimeException::operator=(const RuntimeException& other) noexcept

Copy assignment operator

const String& bpf::RuntimeException::Message() const noexcept

Returns the exception's message

const char* bpf::RuntimeException::Type() const override noexcept

Returns exception type

void bpf::RuntimeException::Print() const override noexcept

Print the exception to the console