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 
15 class GAUDI_API GslError
16 {
17 public:
19  std::string reason ;
21  std::string file ;
23  int line ;
25  int code ;
27  GslError( std::string r = "" ,
28  std::string f = "" ,
29  const int l = 0 ,
30  const int c = 0 )
31  : reason ( std::move(r) ) , file ( std::move(f) ) , line ( l ) , code ( c ) {};
33  bool operator<( const GslError& right ) const
34  {
35  return
36  code < right.code ? true :
37  right.code < code ? false :
38  reason < right.reason ? true :
39  right.reason < reason ? false :
40  file < right.file ? true :
41  right.file < file ? false : line < right.line ;
42  };
43 };
44 
45 // ============================================================================
46 // The END
47 // ============================================================================
48 #endif // GSLERROR_H
49 // ============================================================================
std::string reason
error message ('reason')
Definition: GslError.h:19
tuple c
Definition: gaudirun.py:392
std::string file
file name
Definition: GslError.h:21
Helper class to represent GSL errors.
Definition: GslError.h:15
#define GAUDI_API
Definition: Kernel.h:107
int code
error code (GSL)
Definition: GslError.h:25
STL namespace.
int line
line number
Definition: GslError.h:23
list file
Definition: ana.py:160
dictionary l
Definition: gaudirun.py:422
bool operator<(const Gaudi::Time &t1, const Gaudi::Time &t2)
Definition: Time.icpp:232
int line
Definition: ana.py:50