File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
search_engine_cpp/lib/include/exceptions Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 5
5
#include < string>
6
6
7
7
namespace exceptions {
8
+
9
+ /* *
10
+ * @class invalid_pointer_exception
11
+ * @brief Exception indicating the use of an invalid pointer.
12
+ *
13
+ * This exception is derived from `std::exception` and can be thrown
14
+ * when an invalid pointer is detected.
15
+ */
8
16
class invalid_pointer_exception : public std ::exception {
9
17
public:
18
+ /* *
19
+ * @brief Constructor for the invalid_pointer_exception class.
20
+ *
21
+ * Initializes a new instance of the exception.
22
+ */
10
23
invalid_pointer_exception ();
11
24
25
+ /* *
26
+ * @brief Returns a descriptive error message.
27
+ *
28
+ * @return A C-style string describing the error.
29
+ */
12
30
const char * what () const noexcept override ;
13
31
};
32
+
14
33
} // namespace exceptions
15
34
16
- #endif
35
+ #endif // INVALID_POINTER_H
You can’t perform that action at this time.
0 commit comments