LCOV - code coverage report
Current view: top level - sspmodules/src/anlBoard - anlExceptions.hpp (source / functions) Coverage Total Hit
Test: code.result Lines: 0.0 % 9 0
Test Date: 2026-10-11 15:05:20 Functions: 0.0 % 3 0

            Line data    Source code
       1              : /**
       2              :  * @file anlExceptions.h
       3              : 
       4              :  * This is part of the DUNE DAQ , copyright 2020.
       5              :  * Licensing/copyright details are in the COPYING file that you should have
       6              :  * received with this code.
       7              :  */
       8              : #ifndef SSPMODULES_SRC_ANLBOARD_ANLEXCEPTIONS_HPP_
       9              : #define SSPMODULES_SRC_ANLBOARD_ANLEXCEPTIONS_HPP_
      10              : 
      11              : #include <stdexcept>
      12              : #include <string>
      13              : 
      14              : namespace dunedaq {
      15              : namespace sspmodules {
      16              : 
      17              : //================================//
      18              : // Bad requests from Device Manager//
      19              : //================================//
      20              : 
      21              : class ENoSuchDevice : public std::runtime_error
      22              : {
      23              : public:
      24              :   explicit ENoSuchDevice(const std::string& s)
      25              :     : std::runtime_error(s)
      26              :   {
      27              :   }
      28              : 
      29            0 :   ENoSuchDevice()
      30            0 :     : std::runtime_error("")
      31              :   {
      32            0 :   }
      33              : };
      34              : 
      35              : class EDeviceAlreadyOpen : public std::runtime_error
      36              : {
      37              : public:
      38              :   explicit EDeviceAlreadyOpen(const std::string& s)
      39              :     : std::runtime_error(s)
      40              :   {
      41              :   }
      42              : 
      43            0 :   EDeviceAlreadyOpen()
      44            0 :     : std::runtime_error("")
      45              :   {
      46            0 :   }
      47              : };
      48              : 
      49              : class EBadDeviceList : public std::runtime_error
      50              : {
      51              : public:
      52              :   explicit EBadDeviceList(const std::string& s)
      53              :     : std::runtime_error(s)
      54              :   {
      55              :   }
      56              : 
      57              :   EBadDeviceList()
      58              :     : std::runtime_error("")
      59              :   {
      60              :   }
      61              : };
      62              : 
      63              : //=======================================//
      64              : // Error reported by USB interface library//
      65              : //=======================================//
      66              : 
      67              : class EFTDIError : public std::runtime_error
      68              : {
      69              : public:
      70              :   explicit EFTDIError(const std::string& s)
      71              :     : std::runtime_error(s)
      72              :   {
      73              :   }
      74              : 
      75              :   EFTDIError()
      76              :     : std::runtime_error("")
      77              :   {
      78              :   }
      79              : };
      80              : 
      81              : //=======================================//
      82              : // Error reported by TCP interface library//
      83              : //=======================================//
      84              : 
      85              : class ETCPError : public std::runtime_error
      86              : {
      87              : public:
      88            0 :   explicit ETCPError(const std::string& s)
      89            0 :     : std::runtime_error(s)
      90              :   {
      91            0 :   }
      92              : 
      93              :   ETCPError()
      94              :     : std::runtime_error("")
      95              :   {
      96              :   }
      97              : };
      98              : 
      99              : //===============================================//
     100              : // Error receiving expected event data from device//
     101              : //===============================================//
     102              : 
     103              : class EEventReadError : public std::runtime_error
     104              : {
     105              : public:
     106              :   explicit EEventReadError(const std::string& s)
     107              :     : std::runtime_error(s)
     108              :   {
     109              :   }
     110              : 
     111              :   EEventReadError()
     112              :     : std::runtime_error("")
     113              :   {
     114              :   }
     115              : };
     116              : 
     117              : class EDAQConfigError : public std::runtime_error
     118              : {
     119              : public:
     120              :   explicit EDAQConfigError(const std::string& s)
     121              :     : std::runtime_error(s)
     122              :   {
     123              :   }
     124              : 
     125              :   EDAQConfigError()
     126              :     : std::runtime_error("")
     127              :   {
     128              :   }
     129              : };
     130              : 
     131              : } // namespace sspmodules
     132              : } // namespace dunedaq
     133              : 
     134              : #endif // SSPMODULES_SRC_ANLBOARD_ANLEXCEPTIONS_HPP_
        

Generated by: LCOV version 2.0-1