The Gaudi Framework  v30r3 (a5ef0a68)
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;
28  GslError( std::string r = "", std::string f = "", const int l = 0, const int c = 0 )
29  : reason( std::move( r ) ), file( std::move( f ) ), line( l ), code( c ){};
31  friend bool operator<( const GslError& left, const GslError& right )
32  {
33  return std::tie( left.code, left.reason, left.file, left.line ) <
34  std::tie( right.code, right.reason, right.file, right.line );
35  };
36 };
37 
38 // ============================================================================
39 // The END
40 // ============================================================================
41 #endif // GSLERROR_H
42 // ============================================================================
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:31
dictionary l
Definition: gaudirun.py:440
#define GAUDI_API
Definition: Kernel.h:104
GslError(std::string r="", std::string f="", const int l=0, const int c=0)
constructor
Definition: GslError.h:28