*** empty log message ***

svn path=/trunk/boinc/; revision=3217
This commit is contained in:
David Anderson 2004-04-04 03:31:16 +00:00
parent e23a0cd1c8
commit 24d0115e1a
3 changed files with 47 additions and 32 deletions

View File

@ -321,7 +321,7 @@ int boinc_thread_cpu_time(double& cpu, double& ws) {
#ifdef _WIN32 #ifdef _WIN32
static void CALLBACK on_timer(UINT uTimerID, UINT uMsg, DWORD dwUser, DWORD dw1, DWORD dw2) { static void CALLBACK on_timer(UINT uTimerID, UINT uMsg, DWORD dwUser, DWORD dw1, DWORD dw2) {
#else #else
static RETSIGTYPE on_timer(int a) { static void on_timer(int a) {
#endif #endif
if (!ready_to_checkpoint) { if (!ready_to_checkpoint) {

View File

@ -126,3 +126,5 @@
#define ERR_SOCKS_CONN_REFUSED -175 #define ERR_SOCKS_CONN_REFUSED -175
#define ERR_TIMER_INIT -176 #define ERR_TIMER_INIT -176
#define ERR_RSC_LIMIT_EXCEEDED -177 #define ERR_RSC_LIMIT_EXCEEDED -177
#define ERR_INVALID_PARAM -178
#define ERR_SIGNAL_OP -179

View File

@ -32,20 +32,19 @@ using namespace std;
#include "error_numbers.h" #include "error_numbers.h"
// BOINC Base Exception Class Implementation const char* boinc_base_exception::ErrorType() {
// return "BOINC Exception";
}
const char * boinc_base_exception::ErrorType() const char * boinc_base_exception::ErrorMessage() {
{ return "BOINC Exception"; } return "Unknown Exception";
}
const char * boinc_base_exception::ErrorMessage() long boinc_base_exception::ErrorValue() {
{ return "Unknown Exception"; } return -1;
}
long boinc_base_exception::ErrorValue() const char * boinc_base_exception::what() {
{ return -1; }
const char * boinc_base_exception::what()
{
m_strErrorBuffer.empty(); m_strErrorBuffer.empty();
memset(m_szConversionBuffer, '\0', sizeof(m_szConversionBuffer)); memset(m_szConversionBuffer, '\0', sizeof(m_szConversionBuffer));
@ -80,32 +79,46 @@ const char * boinc_base_exception::what()
// BOINC Base Runtime Exception Class Implementation // BOINC Base Runtime Exception Class Implementation
// //
const char * boinc_runtime_base_exception::ErrorType() const char * boinc_runtime_base_exception::ErrorType() {
{ return "BOINC Runtime Exception"; } return "BOINC Runtime Exception";
}
const char * boinc_runtime_base_exception::ErrorMessage() const char * boinc_runtime_base_exception::ErrorMessage() {
{ return "Unknown Runtime Exception"; } return "Unknown Runtime Exception";
}
// BOINC Runtime Exceptions // BOINC Runtime Exceptions
// //
const char * boinc_out_of_memory_exception::ErrorMessage() const char * boinc_out_of_memory_exception::ErrorMessage() {
{ return "Out Of Memory"; } return "Out Of Memory";
long boinc_out_of_memory_exception::ErrorValue() }
{ return ERR_MALLOC; }
const char * boinc_invalid_parameter_exception::ErrorMessage() long boinc_out_of_memory_exception::ErrorValue() {
{ return "Invalid Parameter"; } return ERR_MALLOC;
long boinc_invalid_parameter_exception::ErrorValue() }
{ return -1001; }
const char * boinc_invalid_parameter_exception::ErrorMessage() {
return "Invalid Parameter";
}
long boinc_invalid_parameter_exception::ErrorValue() {
return ERR_INVALID_PARAM;
}
const char * boinc_file_operation_exception::ErrorMessage() const char * boinc_file_operation_exception::ErrorMessage() {
{ return "File Operation Failure"; } return "File Operation Failure";
long boinc_file_operation_exception::ErrorValue() }
{ return -1100; }
const char * boinc_signal_operation_exception::ErrorMessage() long boinc_file_operation_exception::ErrorValue() {
{ return "Signal Operation Failure"; } return ERR_FOPEN;
long boinc_signal_operation_exception::ErrorValue() }
{ return -1101; }
const char * boinc_signal_operation_exception::ErrorMessage() {
return "Signal Operation Failure";
}
long boinc_signal_operation_exception::ErrorValue() {
return ERR_SIGNAL_OP;
}