SGCT master (487fac4)
Simple Graphics Cluster Toolkit
Loading...
Searching...
No Matches
error.h
Go to the documentation of this file.
1/*****************************************************************************************
2 * SGCT *
3 * Simple Graphics Cluster Toolkit *
4 * *
5 * Copyright (c) 2012-2026 *
6 * For conditions of distribution and use, see copyright notice in LICENSE.md *
7 ****************************************************************************************/
8
9#ifndef __SGCT__ERROR__H__
10#define __SGCT__ERROR__H__
11
12#include <sgct/sgctexports.h>
13
14#include <stdexcept>
15#include <string>
16
17namespace sgct {
18
19struct SGCT_EXPORT Error final : public std::runtime_error {
20 enum class Component {
21 Config,
23 DomeProjection,
27 OBJ,
28 PaulBourke,
29 Pfm,
30 ReadConfig,
31 Scalable,
32 SCISS,
33 Shader,
34 SimCAD,
35 SkySkan,
37 };
38
39 Error(Component comp, int c, std::string msg);
40 ~Error() noexcept override;
41
43 const int code;
44 const std::string message;
45};
46
47} // namespace sgct
48
49#endif // __SGCT__ERROR__H__
Helper class for reading and rendering a correction mesh.
Definition correctionmesh.h:26
The Engine class is the central part of SGCT and handles most of the callbacks, rendering,...
Definition engine.h:71
Definition image.h:19
Network manages peer-to-peer tcp connections.
Definition network.h:35
Definition window.h:46
Definition actions.h:16
const std::string message
Definition error.h:44
Component
Definition error.h:20
Error(Component comp, int c, std::string msg)
const int code
Definition error.h:43
const Component component
Definition error.h:42
~Error() noexcept override