4 #include "GaudiKernel/GaudiException.h"
6 #include "GaudiGSL/IGslSvc.h"
7 #include "GaudiGSL/GslError.h"
9 #include "GaudiGSL/GslErrorHandlers.h"
10 #include "GaudiGSL/GaudiGSL.h"
31 (
const char* reason ,
39 if(
nullptr != svc ) { svc->
handle(
GslError( reason , file , line , code ) ) ; }
43 (
const char* reason ,
48 std::ostringstream error;
49 error <<
" GSL ErrorCode=" << code <<
": '" << reason
50 <<
"' in the file '" << file <<
"' at the line " <<
line;
Define general base for Gaudi exception.
Helper class to represent GSL errors.
The abstract interface to "deal" with GNU Scientific Library (GLS) The main task is the error handlin...
GAUDI_API void throwException(const char *reason, const char *file, int line, int code)
The simple Gsl Error handler, it throwns the Gaudi Exception.
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 ignoreTheError(const char *reason, const char *file, int line, int code)
The simplest Gsl Error handler, It simply ingnores the error.
static const IGslSvc * gslSvc()
static accessor to Gaudi GSL Service
virtual StatusCode handle(const GslError &error) const =0
handle the GSL error