3 #ifndef GAUDIGSL_GSLERROR_H
4 #define GAUDIGSL_GSLERROR_H 1
30 const std::string& f =
"" ,
33 : reason ( r ) , file ( f ) , line (
l ) , code (
c ) {};
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 ;
std::string reason
error message ('reason')
std::string file
file name
Helper class to represent GSL errors.
GslError(const std::string &r="", const std::string &f="", const int l=0, const int c=0)
constructor
bool operator<(const GslError &right) const
comparison (ordering) criteria