Changeset 27035 for issm/trunk/src/c/shared/Exceptions/exceptions.h
- Timestamp:
- 06/01/22 05:01:48 (3 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 26745-26955,26957-27031
- Property svn:mergeinfo changed
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/c/shared/Exceptions/exceptions.h
r24686 r27035 28 28 #include <sstream> 29 29 30 /*macros: */ 30 /*macros: (should move somewhere else)*/ 31 #include "../io/Comm/IssmComm.h" 31 32 /* _assert_ {{{*/ 32 33 /*Assertion macro: do nothing if macro _ISSM_DEBUG_ undefined*/ … … 50 51 do{std::ostringstream aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy; \ 51 52 aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy << StreamArgs << std::ends; \ 52 throw ErrorException( __FILE__,__func__,__LINE__,aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy.str());}while(0)53 throw ErrorException(IssmComm::GetRank(),__FILE__,__func__,__LINE__,aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy.str());}while(0) 53 54 #endif 54 55 /*}}}*/ … … 78 79 79 80 /*ISSM exception class: */ 80 class ErrorException: public exception 81 class ErrorException: public exception{ /*{{{*/ 81 82 82 83 char* what_str; … … 84 85 char* file_name; 85 86 int file_line; 87 int rank; 86 88 87 89 public: 88 ErrorException(const string &what_arg); //for windows 89 ErrorException(const string &what_file,const string& what_function,int what_line,const string& what_arg);//UNIX 90 /*Windows*/ 91 ErrorException(const string &what_arg); 92 /*Linux/macOS*/ 93 ErrorException(int what_rank,const string &what_file,const string& what_function,int what_line,const string& what_arg); 90 94 ~ErrorException() throw(); 91 95 virtual const char *what() const throw();
Note:
See TracChangeset
for help on using the changeset viewer.