Changeset 2273 for trunk/psLib/src/sysUtils/psError.h
- Timestamp:
- Nov 3, 2004, 3:05:00 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sysUtils/psError.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sysUtils/psError.h
r2204 r2273 12 12 * @author Eric Van Alst, MHPCC 13 13 * 14 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-1 0-27 00:57:31$14 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-11-04 01:05:00 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 104 104 * log message. 105 105 * 106 * This function modifies the error stack. 107 * 108 * @return psErrorCode the given error code 106 109 */ 107 void psError( 108 const char *name, ///< Source of error such as file or function detected 109 const char *fmt, ///< A printf style formatting statement defining msg 110 psErrorCode p_psError( 111 const char* file, 112 int lineno, 113 const char* func, 114 psErrorCode code, ///< Error class code 115 psBool new, ///< true if error originates at this location 116 const char* fmt, 110 117 ... 111 118 ); 112 119 113 /** Reports an error message to the logging facility 114 * 115 * This function will invoke the psLogMsg function with a level of 116 * PS_LOG_ERROR and pass the parameters name and fmt to generate a proper 117 * log message. 118 * 119 */ 120 psErrorCode psErrorMsg( 121 const char *name, ///< Name of error in the form aaa.bbb.ccc 122 psErrorCode code, ///< Error class code 123 psBool new, ///< true if error originates at this location 124 const char* fmt, ///< printf style formatting statement defining error message 125 ... 126 ); 120 #define psError(code,new,...) p_psError(__FILE__,__LINE__,__func__,code,new,__VA_ARGS__) 127 121 128 122 /** Create a new psErr struct
Note:
See TracChangeset
for help on using the changeset viewer.
