mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-20 02:40:03 +02:00
28 lines
609 B
Python
Executable File
28 lines
609 B
Python
Executable File
# SPDX-License-Identifier: LGPL-3.0-or-other
|
|
# Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
Created on Thu Dec 14 17:13:55 2017
|
|
|
|
@author: l_frojdh
|
|
"""
|
|
|
|
|
|
class DetectorError(Exception):
|
|
"""
|
|
This error should be used when something fails
|
|
on the detector side
|
|
"""
|
|
pass
|
|
|
|
|
|
class DetectorSettingDoesNotExist(Exception):
|
|
"""This error should be used when the setting does not exist"""
|
|
pass
|
|
|
|
|
|
class DetectorValueError(Exception):
|
|
"""This error should be used when the set value is outside the allowed range"""
|
|
pass
|