All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GslErrorHandlers Namespace Reference

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. More...
 
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. More...
 
GAUDI_API void throwException (const char *reason, const char *file, int line, int code)
 The simple Gsl Error handler, it throwns the Gaudi Exception. More...
 

Detailed Description

The collection of Error Handlers for GSL.

Author
Vanya Belyaev Ivan..nosp@m.Bely.nosp@m.aev@i.nosp@m.tep..nosp@m.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
reasonerror reason (message)
filefile name
lineline number
codeerror code
Author
Vanya Belyaev Ivan..nosp@m.Bely.nosp@m.aev@i.nosp@m.tep..nosp@m.ru
Date
29/04/2002

Definition at line 34 of file GslErrorHandlers.cpp.

38 {
39  // het the GSL service
40  const IGslSvc* svc = GaudiGSL::gslSvc() ;
41  // handle the error if service is valid
42  if( 0 != svc ) { svc->handle( GslError( reason , file , line , code ) ) ; }
43 }
Helper class to represent GSL errors.
Definition: GslError.h:17
The abstract interface to "deal" with GNU Scientific Library (GLS) The main task is the error handlin...
Definition: IGslSvc.h:18
list file
Definition: ana.py:160
static const IGslSvc * gslSvc()
static accessor to Gaudi GSL Service
Definition: GaudiGSL.cpp:30
virtual StatusCode handle(const GslError &error) const =0
handle the GSL error
int line
Definition: ana.py:50
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
reasonerror reason (message)
filefile name
lineline number
codeerror code
Author
Vanya Belyaev Ivan..nosp@m.Bely.nosp@m.aev@i.nosp@m.tep..nosp@m.ru
Date
29/04/2002

Definition at line 27 of file GslErrorHandlers.cpp.

31 {}
void GslErrorHandlers::throwException ( const char *  reason,
const char *  file,
int  line,
int  code 
)

The simple Gsl Error handler, it throwns the Gaudi Exception.

Exceptions
GaudiException
See also
GaudiException
Parameters
reasonerror reason (message)
filefile name
lineline number
codeerror code
Author
Vanya Belyaev Ivan..nosp@m.Bely.nosp@m.aev@i.nosp@m.tep..nosp@m.ru
Date
29/04/2002

Definition at line 46 of file GslErrorHandlers.cpp.

50 {
51  std::ostringstream error;
52  error << " GSL ErrorCode=" << code << ": '" << reason
53  << "' in the file '" << file << "' at the line " << line;
54  throw GaudiException( error.str() , "*GLS Error*" , StatusCode::FAILURE );
55 }
Define general base for Gaudi exception.
list file
Definition: ana.py:160
int line
Definition: ana.py:50