removed Critical and Noncritical exceptions

This commit is contained in:
2019-06-25 10:50:52 +02:00
parent 4b69c01357
commit 7c18ad3c53
3 changed files with 19 additions and 29 deletions

View File

@ -27,49 +27,39 @@ public:
}
};
struct CriticalError : public RuntimeError {
struct SharedMemoryError : public RuntimeError {
public:
CriticalError(std::string msg):RuntimeError(msg) {}
SharedMemoryError(std::string msg):RuntimeError(msg) {}
};
struct SharedMemoryError : public CriticalError {
struct SocketError : public RuntimeError {
public:
SharedMemoryError(std::string msg):CriticalError(msg) {}
SocketError(std::string msg):RuntimeError(msg) {}
};
struct SocketError : public CriticalError {
struct ZmqSocketError : public RuntimeError {
public:
SocketError(std::string msg):CriticalError(msg) {}
ZmqSocketError(std::string msg):RuntimeError(msg) {}
};
struct ZmqSocketError : public CriticalError {
struct NotImplementedError : public RuntimeError {
public:
ZmqSocketError(std::string msg):CriticalError(msg) {}
NotImplementedError(std::string msg):RuntimeError(msg) {}
};
struct NonCriticalError : public RuntimeError {
struct DetectorError : public RuntimeError {
public:
NonCriticalError(std::string msg):RuntimeError(msg) {}
DetectorError(std::string msg):RuntimeError(msg) {}
};
struct NotImplementedError : public NonCriticalError {
struct ReceiverError : public RuntimeError {
public:
NotImplementedError(std::string msg):NonCriticalError(msg) {}
ReceiverError(std::string msg):RuntimeError(msg) {}
};
struct DetectorError : public NonCriticalError {
struct GuiError : public RuntimeError {
public:
DetectorError(std::string msg):NonCriticalError(msg) {}
};
struct ReceiverError : public NonCriticalError {
public:
ReceiverError(std::string msg):NonCriticalError(msg) {}
};
struct GuiError : public NonCriticalError {
public:
GuiError(std::string msg):NonCriticalError(msg) {}
GuiError(std::string msg):RuntimeError(msg) {}
};
}