Line data Source code
1 : /** 2 : Bojan Nikolic <b.nikolic@mrao.cam.ac.uk>, <bojan@bnikolic.co.uk> 3 : Initial version March 2010. 4 : Maintained by ESO since 2013. 5 : 6 : This file is part of LibAIR and is licensed under GNU Public 7 : License Version 2 8 : 9 : \file casaswvr_errs.hpp 10 : Renamed to casawvr_errs.h 2023 11 : 12 : Error hirerarchy for the casaWVR module 13 : */ 14 : #ifndef _LIBAIR_CASAWVR_CASAWVR_ERR_HPP__ 15 : #define _LIBAIR_CASAWVR_CASAWVR_ERR_HPP__ 16 : #include <string> 17 : #include <stdexcept> 18 : 19 : namespace LibAIR2 { 20 : 21 : class MSInputDataError: 22 : public std::runtime_error 23 : { 24 : public: 25 : 26 0 : MSInputDataError(const std::string &s): 27 : std::runtime_error("There is an error in the supplied input data which prevents the calculation\ 28 0 : of the calibration: " + s) 29 0 : {} 30 : 31 : }; 32 : 33 : 34 : } 35 : 36 : 37 : #endif 38 :