mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 23:10:02 +02:00
37 lines
941 B
C++
37 lines
941 B
C++
#pragma once
|
|
/************************************************
|
|
* @file sls_detector_exceptions.h
|
|
* @short exceptions defined
|
|
***********************************************/
|
|
/**
|
|
*@short exceptions defined
|
|
*/
|
|
|
|
#include <iostream>
|
|
#include <exception>
|
|
|
|
struct SlsDetectorPackageExceptions : public std::exception {
|
|
public:
|
|
SlsDetectorPackageExceptions() {}
|
|
std::string GetMessage() const { return "SLS Detector Package Failed";};
|
|
};
|
|
|
|
struct SharedMemoryException : public SlsDetectorPackageExceptions {
|
|
public:
|
|
SharedMemoryException() {}
|
|
std::string GetMessage() const { return "Shared Memory Failed";};
|
|
};
|
|
|
|
struct SocketException : public SlsDetectorPackageExceptions {
|
|
public:
|
|
SocketException() {}
|
|
std::string GetMessage() const { return "Socket Failed";};
|
|
};
|
|
|
|
struct SamePortSocketException : public SocketException {
|
|
public:
|
|
SamePortSocketException() {}
|
|
std::string GetMessage() const { return "Socket Failed";};
|
|
};
|
|
|