The collection of Error Handlers for GSL.
More...
Functions |
| GAUDI_API void | ignoreTheError (const char *reason, const char *file, int line, int code) |
| | The simplest Gsl Error handler, It simply ingnores the error.
|
| GAUDI_API void | handleTheError (const char *reason, const char *file, int line, int code) |
| | The simplest Gsl Error handler, It delegates the actual error handling to GSL Service.
|
| GAUDI_API void | throwException (const char *reason, const char *file, int line, int code) |
| | The simple Gsl Error handler, it throwns the Gaudi Exception.
|
Detailed Description
The collection of Error Handlers for GSL.
- Author:
- Vanya Belyaev Ivan.Belyaev@itep.ru
- Date:
- 29/04/2002
Function Documentation
| void GslErrorHandlers::handleTheError |
( |
const char * |
reason, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
int |
code |
|
) |
| |
The simplest Gsl Error handler, It delegates the actual error handling to GSL Service.
- See also:
- IGslSvc
- Parameters:
-
| reason | error reason (message) |
| file | file name |
| line | line number |
| code | error code |
- Author:
- Vanya Belyaev Ivan.Belyaev@itep.ru
- Date:
- 29/04/2002
Definition at line 32 of file GslErrorHandlers.cpp.
| void GslErrorHandlers::ignoreTheError |
( |
const char * |
reason, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
int |
code |
|
) |
| |
The simplest Gsl Error handler, It simply ingnores the error.
- See also:
- IGslSvc
- Parameters:
-
| reason | error reason (message) |
| file | file name |
| line | line number |
| code | error code |
- Author:
- Vanya Belyaev Ivan.Belyaev@itep.ru
- Date:
- 29/04/2002
Definition at line 25 of file GslErrorHandlers.cpp.
| void GslErrorHandlers::throwException |
( |
const char * |
reason, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
int |
code |
|
) |
| |
The simple Gsl Error handler, it throwns the Gaudi Exception.
- Exceptions:
-
- See also:
- GaudiException
- Parameters:
-
| reason | error reason (message) |
| file | file name |
| line | line number |
| code | error code |
- Author:
- Vanya Belyaev Ivan.Belyaev@itep.ru
- Date:
- 29/04/2002
Definition at line 44 of file GslErrorHandlers.cpp.
{
std::string error( " GSL ErrorCode=" );
static char s_aux[512];
error += std::string( s_aux , s_aux + sprintf( s_aux , "%d" , code ) );
error += ": '" ;
error += reason ;
error += "' in the file '" ;
error += file ;
error += "' at the line " ;
error += std::string( s_aux , s_aux + sprintf( s_aux , "%d" , line ) );
error += "'" ;
throw GaudiException( error , "*GLS Error*" , StatusCode::FAILURE );
}