All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
GslError Struct Reference

Helper class to represent GSL errors. More...

#include <GaudiGSL/GslError.h>

Collaboration diagram for GslError:

Public Member Functions

 GslError (std::string r="", std::string f="", const int l=0, const int c=0)
 constructor More...
 
bool operator< (const GslError &right) const
 comparison (ordering) criteria More...
 

Public Attributes

std::string reason
 error message ('reason') More...
 
std::string file
 file name More...
 
int line
 line number More...
 
int code
 error code (GSL) More...
 

Detailed Description

Helper class to represent GSL errors.

Author
Vanya Belyaev Ivan.Belyaev
Date
29/04/2002

Definition at line 15 of file GslError.h.

Constructor & Destructor Documentation

GslError::GslError ( std::string  r = "",
std::string  f = "",
const int  l = 0,
const int  c = 0 
)
inline

constructor

Definition at line 27 of file GslError.h.

31  : reason ( std::move(r) ) , file ( std::move(f) ) , line ( l ) , code ( c ) {};
std::string reason
error message (&#39;reason&#39;)
Definition: GslError.h:19
std::string file
file name
Definition: GslError.h:21
int code
error code (GSL)
Definition: GslError.h:25
int line
line number
Definition: GslError.h:23
T move(T...args)
dictionary l
Definition: gaudirun.py:421

Member Function Documentation

bool GslError::operator< ( const GslError right) const
inline

comparison (ordering) criteria

Definition at line 33 of file GslError.h.

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  };
std::string reason
error message (&#39;reason&#39;)
Definition: GslError.h:19
std::string file
file name
Definition: GslError.h:21
int code
error code (GSL)
Definition: GslError.h:25
int line
line number
Definition: GslError.h:23

Member Data Documentation

int GslError::code

error code (GSL)

Definition at line 25 of file GslError.h.

std::string GslError::file

file name

Definition at line 21 of file GslError.h.

int GslError::line

line number

Definition at line 23 of file GslError.h.

std::string GslError::reason

error message ('reason')

Definition at line 19 of file GslError.h.


The documentation for this struct was generated from the following file: