The Gaudi Framework  v28r3 (cc1cf868)
GslError.h
Go to the documentation of this file.
1 #ifndef GAUDIGSL_GSLERROR_H
2 #define GAUDIGSL_GSLERROR_H 1
3 // Include files
4 #include "GaudiKernel/Kernel.h"
5 // STD & STL
6 #include <string>
7 #include <tuple>
8 
17 {
18 public:
24  int line ;
26  int code ;
29  std::string f = "" ,
30  const int l = 0 ,
31  const int c = 0 )
32  : reason ( std::move(r) ) , file ( std::move(f) ) , line ( l ) , code ( c ) {};
34  friend bool operator<( const GslError& left, const GslError& right )
35  {
36  return std::tie( left.code, left.reason, left.file, left.line )
37  < std::tie( right.code, right.reason, right.file, right.line );
38  };
39 };
40 
41 // ============================================================================
42 // The END
43 // ============================================================================
44 #endif // GSLERROR_H
45 // ============================================================================
std::string reason
error message (&#39;reason&#39;)
Definition: GslError.h:20
std::string file
file name
Definition: GslError.h:22
Helper class to represent GSL errors.
Definition: GslError.h:16
T tie(T...args)
int code
error code (GSL)
Definition: GslError.h:26
STL namespace.
int line
line number
Definition: GslError.h:24
STL class.
friend bool operator<(const GslError &left, const GslError &right)
comparison (ordering) criteria
Definition: GslError.h:34
dictionary l
Definition: gaudirun.py:421
#define GAUDI_API
Definition: Kernel.h:107
GslError(std::string r="", std::string f="", const int l=0, const int c=0)
constructor
Definition: GslError.h:28