Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
Loading...
Searching...
No Matches
Exceptions.h
1#pragma once
2#include <string>
3#include <sstream>
4
5namespace Engine::Exceptions {
6
10 class Exception : public std::runtime_error
11 {
12 public:
16 explicit Exception( const std::string & message ) : std::runtime_error( message ) {}
17
21 explicit Exception( const std::stringstream & message ) : std::runtime_error( message.str() ) {}
22 };
23
28 {
29 public:
33 explicit VrHeadsetConnection( const std::string & message ) : Exception( message ) {}
34
38 explicit VrHeadsetConnection( const std::stringstream & message ) : Exception( message ) {}
39 };
40
44 class VulkanSetup : public Exception
45 {
46 public:
50 explicit VulkanSetup( const std::string & message ) : Exception( message ) {}
51
55 explicit VulkanSetup( const std::stringstream & message ) : Exception( message ) {}
56 };
57
61 class XrRendering : public Exception
62 {
63 public:
67 explicit XrRendering( const std::string & message ) : Exception( message ) {}
68
72 explicit XrRendering( const std::stringstream & message ) : Exception( message ) {}
73 };
74
78 class Rendering : public Exception
79 {
80 public:
84 explicit Rendering( const std::string & message ) : Exception( message ) {}
85
89 explicit Rendering( const std::stringstream & message ) : Exception( message ) {}
90 };
91
96 class BufferWrite : public Exception
97 {
98 public:
102 explicit BufferWrite( const std::string & message ) : Exception( message ) {};
103
107 explicit BufferWrite( const std::stringstream & message ) : Exception( message ) {}
108 };
109
113 class Allocation : public Exception
114 {
115 public:
119 explicit Allocation( const std::string & message ) : Exception( message ) {};
120
124 explicit Allocation( const std::stringstream & message ) : Exception( message ) {};
125 };
126
131 {
132 public:
136 explicit MissingOpenXrRuntime( const std::string & message ) : Exception( message ) {};
137
141 explicit MissingOpenXrRuntime( const std::stringstream & message ) : Exception( message ) {};
142 };
143
148 public:
149 explicit InitializationOrder(const std::string &message) : Exception(message) { }
150 explicit InitializationOrder(const std::stringstream &message) : Exception(message) { }
151 };
152}
Allocation(const std::string &message)
Creates an allocation exception from message text.
Definition Exceptions.h:119
Allocation(const std::stringstream &message)
Creates an allocation exception from a formatted message stream.
Definition Exceptions.h:124
BufferWrite(const std::string &message)
Creates a buffer write exception from message text.
Definition Exceptions.h:102
BufferWrite(const std::stringstream &message)
Creates a buffer write exception from a formatted message stream.
Definition Exceptions.h:107
Exception(const std::string &message)
Creates an engine exception from message text.
Definition Exceptions.h:16
Exception(const std::stringstream &message)
Creates an engine exception from a formatted message stream.
Definition Exceptions.h:21
InitializationOrder(const std::string &message)
Definition Exceptions.h:149
InitializationOrder(const std::stringstream &message)
Definition Exceptions.h:150
MissingOpenXrRuntime(const std::string &message)
Creates a missing OpenXR runtime exception from message text.
Definition Exceptions.h:136
MissingOpenXrRuntime(const std::stringstream &message)
Creates a missing OpenXR runtime exception from a formatted message stream.
Definition Exceptions.h:141
Rendering(const std::string &message)
Creates a rendering exception from message text.
Definition Exceptions.h:84
Rendering(const std::stringstream &message)
Creates a rendering exception from a formatted message stream.
Definition Exceptions.h:89
VrHeadsetConnection(const std::stringstream &message)
Creates a VR headset connection exception from a formatted message stream.
Definition Exceptions.h:38
VrHeadsetConnection(const std::string &message)
Creates a VR headset connection exception from message text.
Definition Exceptions.h:33
VulkanSetup(const std::string &message)
Creates a Vulkan setup exception from message text.
Definition Exceptions.h:50
VulkanSetup(const std::stringstream &message)
Creates a Vulkan setup exception from a formatted message stream.
Definition Exceptions.h:55
XrRendering(const std::string &message)
Creates an OpenXR rendering exception from message text.
Definition Exceptions.h:67
XrRendering(const std::stringstream &message)
Creates an OpenXR rendering exception from a formatted message stream.
Definition Exceptions.h:72
STL namespace.