QCDLoop
One-loop scalar Feynman integrals
exceptions.h
1 //
2 // QCDLoop 2016
3 //
4 // Authors: Stefano Carrazza: stefano.carrazza@cern.ch
5 // Keith Ellis: keith.ellis@durham.ac.uk
6 // Giulia Zanderighi: giulia.zanderighi@cern.ch
7 
8 #pragma once
9 
10 #include <exception>
11 #include <stdexcept>
12 
13 namespace ql
14 {
16  class LogicException: public std::logic_error
17  {
18  public:
19  LogicException(const std::string& tag, const std::string& what) : std::logic_error(tag + ": " + what) {}
20  };
21 
23  class RangeError: public LogicException
24  {
25  public:
26  RangeError(const std::string& tag, const std::string& what) : LogicException(tag,what) {}
27  };
28 
31  {
32  public:
33  LengthError(const std::string& tag, const std::string& what): LogicException(tag,what) {}
34  };
35 
38  {
39  public:
40  ConvergenceError(const std::string& tag, const std::string& what) : LogicException(tag,what) {}
41  };
42 
43 }
Error to be thrown when out of the valid range.
Definition: exceptions.h:16
Error to be thrown when out of the valid range.
Definition: exceptions.h:30
Error to be thrown when out of the valid range.
Definition: exceptions.h:37
Definition: box.cc:14
Error to be thrown when out of the valid range.
Definition: exceptions.h:23