Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 public:
23  int line;
25  int code;
27  GslError( std::string r = "", std::string f = "", const int l = 0, const int c = 0 )
28  : reason( std::move( r ) ), file( std::move( f ) ), line( l ), code( c ){};
30  friend bool operator<( const GslError& left, const GslError& right ) {
31  return std::tie( left.code, left.reason, left.file, left.line ) <
32  std::tie( right.code, right.reason, right.file, right.line );
33  };
34 };
35 
36 // ============================================================================
37 // The END
38 // ============================================================================
39 #endif // GSLERROR_H
std::string reason
error message (&#39;reason&#39;)
Definition: GslError.h:19
std::string file
file name
Definition: GslError.h:21
Helper class to represent GSL errors.
Definition: GslError.h:16
T tie(T...args)
int code
error code (GSL)
Definition: GslError.h:25
STL namespace.
int line
line number
Definition: GslError.h:23
STL class.
friend bool operator<(const GslError &left, const GslError &right)
comparison (ordering) criteria
Definition: GslError.h:30
dictionary l
Definition: gaudirun.py:517
#define GAUDI_API
Definition: Kernel.h:71
GslError(std::string r="", std::string f="", const int l=0, const int c=0)
constructor
Definition: GslError.h:27