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
10 class Exception : public std::runtime_error
11 {
12 public:
13 explicit Exception( const std::string & message ) : std::runtime_error( message ) {}
14
15 explicit Exception( const std::stringstream & message ) : std::runtime_error( message.str() ) {}
16 };
17
22 {
23 public:
24 explicit VrHeadsetConnection( const std::string & message ) : Exception( message ) {}
25
26 explicit VrHeadsetConnection( const std::stringstream & message ) : Exception( message ) {}
27 };
28
32 class VulkanSetup : public Exception
33 {
34 public:
35 explicit VulkanSetup( const std::string & message ) : Exception( message ) {}
36
37 explicit VulkanSetup( const std::stringstream & message ) : Exception( message ) {}
38 };
39
43 class XrRendering : public Exception
44 {
45 public:
46 explicit XrRendering( const std::string & message ) : Exception( message ) {}
47
48 explicit XrRendering( const std::stringstream & message ) : Exception( message ) {}
49 };
50
54 class Rendering : public Exception
55 {
56 public:
57 explicit Rendering( const std::string & message ) : Exception( message ) {}
58
59 explicit Rendering( const std::stringstream & message ) : Exception( message ) {}
60 };
61
66 class BufferWrite : public Exception
67 {
68 public:
69 explicit BufferWrite( const std::string & message ) : Exception( message ) {};
70
71 explicit BufferWrite( const std::stringstream & message ) : Exception( message ) {}
72 };
73
77 class Allocation : public Exception
78 {
79 public:
80 explicit Allocation( const std::string & message ) : Exception( message ) {};
81 explicit Allocation( const std::stringstream & message ) : Exception( message ) {};
82 };
83
88 {
89 public:
90 explicit MissingOpenXrRuntime( const std::string & message ) : Exception( message ) {};
91 explicit MissingOpenXrRuntime( const std::stringstream & message ) : Exception( message ) {};
92 };
93}
Allocation(const std::string &message)
Definition Exceptions.h:80
Allocation(const std::stringstream &message)
Definition Exceptions.h:81
BufferWrite(const std::string &message)
Definition Exceptions.h:69
BufferWrite(const std::stringstream &message)
Definition Exceptions.h:71
Exception(const std::string &message)
Definition Exceptions.h:13
Exception(const std::stringstream &message)
Definition Exceptions.h:15
MissingOpenXrRuntime(const std::string &message)
Definition Exceptions.h:90
MissingOpenXrRuntime(const std::stringstream &message)
Definition Exceptions.h:91
Rendering(const std::string &message)
Definition Exceptions.h:57
Rendering(const std::stringstream &message)
Definition Exceptions.h:59
VrHeadsetConnection(const std::stringstream &message)
Definition Exceptions.h:26
VrHeadsetConnection(const std::string &message)
Definition Exceptions.h:24
VulkanSetup(const std::string &message)
Definition Exceptions.h:35
VulkanSetup(const std::stringstream &message)
Definition Exceptions.h:37
XrRendering(const std::string &message)
Definition Exceptions.h:46
XrRendering(const std::stringstream &message)
Definition Exceptions.h:48
STL namespace.