StormByte C++ Library: Config module 0.0.9999
StormByte-Config is a StormByte library module for parsing configuration files
Loading...
Searching...
No Matches
exception.hxx
1#pragma once
2
3#include <StormByte/exception.hxx>
4#include <StormByte/config/visibility.h>
5
10namespace StormByte::Config {
15 class STORMBYTE_CONFIG_PUBLIC Exception: public StormByte::Exception {
16 public:
20 using StormByte::Exception::Exception;
21 };
22
27 class STORMBYTE_CONFIG_PUBLIC WrongValueTypeConversion final: public Exception {
28 public:
29 using Exception::Exception;
30 };
31
36 class STORMBYTE_CONFIG_PUBLIC ValueFailure final: public Exception {
37 public:
38 using Exception::Exception;
39 };
40
45 class STORMBYTE_CONFIG_PUBLIC InvalidName final: public Exception {
46 public:
47 using Exception::Exception;
48 };
49
54 class STORMBYTE_CONFIG_PUBLIC InvalidPath final: public Exception {
55 public:
56 using Exception::Exception;
57 };
58
63 class STORMBYTE_CONFIG_PUBLIC ParseError final: public Exception {
64 public:
65 using Exception::Exception;
66 };
67
72 class STORMBYTE_CONFIG_PUBLIC ItemNotFound final: public Exception {
73 public:
74 using Exception::Exception;
75 };
76
81 class STORMBYTE_CONFIG_PUBLIC ItemAlreadyExists final: public Exception {
82 public:
83 using Exception::Exception;
84 };
85
90 class STORMBYTE_CONFIG_PUBLIC ItemNameAlreadyExists final: public Exception {
91 public:
92 using Exception::Exception;
93 };
94
99 class STORMBYTE_CONFIG_PUBLIC OutOfBounds final: public Exception {
100 public:
101 using Exception::Exception;
102 };
103}
Base class for all configuration-related exceptions.
Definition exception.hxx:15
Thrown when an invalid name is used for an item.
Definition exception.hxx:45
Thrown when an invalid path is used for an item.
Definition exception.hxx:54
Thrown when attempting to add an item that already exists.
Definition exception.hxx:81
Thrown when an item's name conflicts with an existing name.
Definition exception.hxx:90
Thrown when an item cannot be found by its path or name.
Definition exception.hxx:72
Thrown when an index is out of bounds.
Definition exception.hxx:99
Thrown when a parsing error occurs in a configuration file.
Definition exception.hxx:63
Thrown when setting a value fails due to type mismatch.
Definition exception.hxx:36
Thrown when a value is converted to an incorrect type.
Definition exception.hxx:27