Skip to content
Snippets Groups Projects
Select Git revision
  • ziyue_work_branch
  • master default protected
  • pr/diffractive_vm_campaign
  • jacamar
  • pr/lowQ2_benchmark
  • this-epic.sh
  • pr/u_channel_sweger
  • pi0_and_photon
  • revert-49e6bc61
  • neutron_in_insert
  • sebouh137-patch-1
  • physics_benchmarks
  • pr/dis_snakemake
  • pr/kinematics_correlations_ak_num
  • pdf-report
  • master-patch-9d2b
  • TA-work-branch2
  • TA-work-branch
  • truth_reconstruction
  • tooba-master-patch-35679
  • diffractive_vm
21 results

exception.h

Blame
  • Sylvester Joosten's avatar
    Sylvester Joosten authored
    Update the CI scripts for the DIS stub to be consistent with the more generic DVMP scripts. Also did some more restructuring of the benchmark to make it easier to split off a generic benchmark library in the future.
    f8eba5d4
    History
    exception.h 541 B
    #ifndef UTIL_EXCEPTION_H
    #define UTIL_EXCEPTION_H
    
    #include <exception>
    #include <string>
    
    namespace eic::util {
      class Exception : public std::exception {
      public:
        Exception(std::string_view msg, std::string_view type = "exception") : msg_{msg}, type_{type} {}
    
        virtual const char* what() const throw() { return msg_.c_str(); }
        virtual const char* type() const throw() { return type_.c_str(); }
        virtual ~Exception() throw() {}
    
      private:
        std::string msg_;
        std::string type_;
      };
    } // namespace eic::util
    
    #endif