Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Exceptions.h
Go to the documentation of this file.
1#pragma once
2#include <string>
3#include <sstream>
4
5namespace Engine::Exceptions {
6
7class Exception : public std::runtime_error
8{
9public:
10 explicit Exception(const std::string& message) : std::runtime_error(message) {}
11 explicit Exception(const std::stringstream& message) : std::runtime_error(message.str()) {}
12};
13
15{
16public:
17 explicit VrHeadsetConnection(const std::string& message) : Exception(message) {}
18 explicit VrHeadsetConnection(const std::stringstream& message) : Exception(message) {}
19};
20
24class VulkanSetup : public Exception
25 {
26 public:
27 explicit VulkanSetup(const std::string& message) : Exception(message) {}
28 explicit VulkanSetup(const std::stringstream& message) : Exception(message) {}
29 };
30
31 class XrRendering : public Exception
32 {
33 public:
34 explicit XrRendering(const std::string& message) : Exception(message) {}
35 explicit XrRendering(const std::stringstream& message) : Exception(message) {}
36 };
37
38 class Rendering : public Exception
39 {
40 public:
41 explicit Rendering(const std::string& message) : Exception(message) {}
42 explicit Rendering(const std::stringstream& message) : Exception(message) {}
43 };
44
49class BufferWrite : public Exception
50{
51public:
52 explicit BufferWrite(const std::string& message) : Exception(message) {};
53 explicit BufferWrite(const std::stringstream& message) : Exception(message) {}
54};
55
59class Allocation : public Exception
60{
61public:
62 explicit Allocation(const std::string& message) : Exception(message) {};
63 explicit Allocation(const std::stringstream& message) : Exception(message) {};
64};
65
70{
71public:
72 explicit MissingOpenXrRuntime(const std::string& message) : Exception(message) {};
73 explicit MissingOpenXrRuntime(const std::stringstream& message) : Exception(message) {};
74};
75}
Allocation(const std::string &message)
Definition Exceptions.h:62
Allocation(const std::stringstream &message)
Definition Exceptions.h:63
BufferWrite(const std::string &message)
Definition Exceptions.h:52
BufferWrite(const std::stringstream &message)
Definition Exceptions.h:53
Exception(const std::string &message)
Definition Exceptions.h:10
Exception(const std::stringstream &message)
Definition Exceptions.h:11
MissingOpenXrRuntime(const std::string &message)
Definition Exceptions.h:72
MissingOpenXrRuntime(const std::stringstream &message)
Definition Exceptions.h:73
Rendering(const std::string &message)
Definition Exceptions.h:41
Rendering(const std::stringstream &message)
Definition Exceptions.h:42
VrHeadsetConnection(const std::stringstream &message)
Definition Exceptions.h:18
VrHeadsetConnection(const std::string &message)
Definition Exceptions.h:17
VulkanSetup(const std::string &message)
Definition Exceptions.h:27
VulkanSetup(const std::stringstream &message)
Definition Exceptions.h:28
XrRendering(const std::string &message)
Definition Exceptions.h:34
XrRendering(const std::stringstream &message)
Definition Exceptions.h:35
STL namespace.