#include <ErrorImplNSPR.h>
Inheritance diagram for vpr::ErrorImplNSPR:


Static Public Methods | |
| void | outputCurrentError (std::ostream &out, const std::string &prefix) |
| ErrorType | getCurrentError () |
Static Protected Methods | |
| PRErrorCode | convertErrorVprToNspr (ErrorType mask) |
| ErrorType | convertErrorNsprToVpr (PRErrorCode mask) |
Definition at line 57 of file ErrorImplNSPR.h.
|
||||||||||||
|
Reimplemented from vpr::ErrorBase. Definition at line 61 of file ErrorImplNSPR.h.
00062 {
00063 PRErrorCode err = PR_GetError();
00064 const char* err_name = PR_ErrorToName(err);
00065 const char* err_str = PR_ErrorToString(err,0);
00066
00067 /*
00068 int os_err = PR_GetOSError();
00069 char* os_str = strerror(PR_GetOSError());
00070 */
00071
00072 out << "Error (NSPR): " << prefix
00073 << " (" << err;
00074 if(err_name != NULL)
00075 out << ":" << err_name;
00076
00077 if(err_str != NULL)
00078 out << ", " << err_str;
00079
00080 out << ")" << std::endl;
00081 }
|
|
|
Reimplemented from vpr::ErrorBase. Definition at line 83 of file ErrorImplNSPR.h.
00084 {
00085 return NoError;
00086 }
|
|
|
Definition at line 89 of file ErrorImplNSPR.h.
00090 { return PR_MAX_ERROR; }
|
|
|
Definition at line 91 of file ErrorImplNSPR.h.
00092 { return NoError; }
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002