19#ifndef LOMIRI_EXCEPTIONS_H
20#define LOMIRI_EXCEPTIONS_H
22#include <lomiri/Exception.h>
49 virtual std::exception_ptr
self()
const override;
74 virtual std::exception_ptr
self()
const override;
103 virtual std::exception_ptr
self()
const override;
132 virtual std::exception_ptr
self()
const override;
137 int error()
const noexcept;
168 virtual std::exception_ptr
self()
const override;
173 int error()
const noexcept;
200 virtual std::exception_ptr
self()
const override;
Exception(std::string const &name, std::string const &reason)
Constructs an exception instance.
Definition Exception.cpp:165
std::string reason() const
Returns the reason set by the derived class's constructor (empty string if none).
Definition Exception.cpp:224
virtual std::exception_ptr self() const override
Returns a std::exception_ptr to this.
Definition LomiriExceptions.cpp:109
int error() const noexcept
Definition LomiriExceptions.cpp:104
FileException(std::string const &reason, int err)
Constructs the exception.
Definition LomiriExceptions.cpp:87
virtual std::exception_ptr self() const override
Returns a std::exception_ptr to this.
Definition LomiriExceptions.cpp:42
InvalidArgumentException(std::string const &reason)
Constructs the exception.
Definition LomiriExceptions.cpp:26
virtual std::exception_ptr self() const override
Returns a std::exception_ptr to this.
Definition LomiriExceptions.cpp:62
LogicException(std::string const &reason)
Constructs the exception.
Definition LomiriExceptions.cpp:47
virtual std::exception_ptr self() const override
Returns a std::exception_ptr to this.
Definition LomiriExceptions.cpp:155
ResourceException(std::string const &reason)
Constructs the exception.
Definition LomiriExceptions.cpp:140
virtual std::exception_ptr self() const override
Returns a std::exception_ptr to this.
Definition LomiriExceptions.cpp:82
ShutdownException(std::string const &reason)
Constructs the exception.
Definition LomiriExceptions.cpp:67
SyscallException(std::string const &reason, int err)
Constructs the exception.
Definition LomiriExceptions.cpp:114
virtual std::exception_ptr self() const override
Returns a std::exception_ptr to this.
Definition LomiriExceptions.cpp:135
int error() const noexcept
Definition LomiriExceptions.cpp:130
Top-level namespace for all things Lomiri-related.
Definition Version.h:38