mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 15:00:02 +02:00
39 lines
689 B
C++
39 lines
689 B
C++
#pragma once
|
|
/************************************************
|
|
* @file sls_detector_exceptions.h
|
|
* @short exceptions defined
|
|
***********************************************/
|
|
/**
|
|
*@short exceptions defined
|
|
*/
|
|
|
|
#include <iostream>
|
|
#include <stdexcept>
|
|
|
|
namespace sls{
|
|
|
|
struct RuntimeError : public std::runtime_error {
|
|
public:
|
|
RuntimeError(): runtime_error("SLS Detector Package Failed") {}
|
|
RuntimeError(std::string msg): runtime_error(msg) {}
|
|
};
|
|
|
|
struct SharedMemoryError : public RuntimeError {
|
|
public:
|
|
SharedMemoryError(std::string msg):RuntimeError(msg) {}
|
|
|
|
};
|
|
|
|
struct SocketError : public RuntimeError {
|
|
public:
|
|
SocketError(std::string msg):RuntimeError(msg) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|