All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GslError.h
Go to the documentation of this file.
1 // $Id: GslError.h,v 1.2 2003/11/19 16:55:57 mato Exp $
2 // ============================================================================
3 #ifndef GAUDIGSL_GSLERROR_H
4 #define GAUDIGSL_GSLERROR_H 1
5 // Include files
6 #include "GaudiKernel/Kernel.h"
7 // STD & STL
8 #include <string>
9 
18 {
19 public:
21  std::string reason ;
23  std::string file ;
25  int line ;
27  int code ;
29  GslError( const std::string& r = "" ,
30  const std::string& f = "" ,
31  const int l = 0 ,
32  const int c = 0 )
33  : reason ( r ) , file ( f ) , line ( l ) , code ( c ) {};
35  bool operator<( const GslError& right ) const
36  {
37  return
38  code < right.code ? true :
39  right.code < code ? false :
40  reason < right.reason ? true :
41  right.reason < reason ? false :
42  file < right.file ? true :
43  right.file < file ? false : line < right.line ;
44  };
45 };
46 
47 // ============================================================================
48 // The END
49 // ============================================================================
50 #endif // GSLERROR_H
51 // ============================================================================
std::string reason
error message ('reason')
Definition: GslError.h:21
std::string file
file name
Definition: GslError.h:23
Helper class to represent GSL errors.
Definition: GslError.h:17
int code
error code (GSL)
Definition: GslError.h:27
tuple c
Definition: gaudirun.py:341
int line
line number
Definition: GslError.h:25
list file
Definition: ana.py:160
dictionary l
Definition: gaudirun.py:365
GslError(const std::string &r="", const std::string &f="", const int l=0, const int c=0)
constructor
Definition: GslError.h:29
bool operator<(const GslError &right) const
comparison (ordering) criteria
Definition: GslError.h:35
#define GAUDI_API
Definition: Kernel.h:108
int line
Definition: ana.py:50