Dynamic Neural Field Composer 0.0.0
A C++20 library and interactive application for building and simulating Dynamic Neural Field (DNF) architectures.
Loading...
Searching...
No Matches
exception.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <exception>
5#include <string>
6
7namespace dnf_composer
8{
23
24 class Exception : public std::exception
25 {
26 private:
27 ErrorCode errorCode;
28 std::string errorMessage;
29 std::string errorElement;
30 std::string errorComponent;
31 int errorIndex;
32 public:
33 Exception(std::string message);
34 Exception(ErrorCode errorCode);
35 Exception(ErrorCode errorCode, std::string errorElement);
36 Exception(ErrorCode errorCode, int errorIndex);
37 Exception(ErrorCode errorCode, std::string errorElement, std::string errorComponent);
38
39 [[nodiscard]] const char* what() const noexcept override;
40
41 [[nodiscard]] ErrorCode getErrorCode() const;
42 [[nodiscard]] std::string getErrorMessage() const;
43 };
44}
45
Definition exception.h:25
const char * what() const noexcept override
Definition exception.cpp:35
std::string getErrorMessage() const
Definition exception.cpp:45
ErrorCode getErrorCode() const
Definition exception.cpp:40
Definition application.h:20
ErrorCode
Definition exception.h:10