mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-19 12:59:27 +01:00
Moved sls_detector_exceptions to sls_receiver_exceptions & its consequences
This commit is contained in:
39
slsReceiverSoftware/include/sls_receiver_exceptions.h
Normal file
39
slsReceiverSoftware/include/sls_receiver_exceptions.h
Normal file
@@ -0,0 +1,39 @@
|
||||
#pragma once
|
||||
/************************************************
|
||||
* @file sls_receiver_exceptions.h
|
||||
* @short exceptions defined
|
||||
***********************************************/
|
||||
/**
|
||||
*@short exceptions defined
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <exception>
|
||||
using namespace std;
|
||||
|
||||
|
||||
struct SharedMemoryException : public exception {
|
||||
public:
|
||||
SharedMemoryException() {}
|
||||
string GetMessage() const { return "Shared Memory Failed";};
|
||||
};
|
||||
|
||||
struct ThreadpoolException : public exception {
|
||||
public:
|
||||
ThreadpoolException() {}
|
||||
string GetMessage() const { return "Threadpool Failed";};
|
||||
};
|
||||
|
||||
struct SocketException : public std::exception {
|
||||
public:
|
||||
SocketException() {}
|
||||
std::string GetMessage() const { return "Socket Failed";};
|
||||
};
|
||||
|
||||
|
||||
struct SamePortSocketException : public SocketException {
|
||||
public:
|
||||
SamePortSocketException() {}
|
||||
std::string GetMessage() const { return "Socket Failed";};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user