|
Gaudi Framework, version v23r2 |
| Home | Generated: Thu Jun 28 2012 |
Concrete GSL eror handler It is just thrown the exception. More...
#include <GslErrorException.h>


Public Member Functions | |
| virtual StatusCode | handle (const GslError &error) const |
| handle the GSL error | |
| GslErrorException (const std::string &type, const std::string &name, const IInterface *parent) | |
| Standard constructor. | |
| virtual | ~GslErrorException () |
| destructor (protected and virtual) | |
Private Attributes | |
| std::vector< int > | m_ignore |
| codes to be ignored: | |
Concrete GSL eror handler It is just thrown the exception.
Definition at line 28 of file GslErrorException.h.
| GslErrorException::GslErrorException | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent | ||
| ) |
Standard constructor.
Declaration of the Tool Factory.
| type | tool type (?) |
| name | tool name |
| parent | pointer to parent |
| type | tool type (?) |
| name | tool name |
| parent | pointer to parent |
Definition at line 41 of file GslErrorException.cpp.
: base_class ( type, name , parent ) , m_ignore () { declareProperty ( "IgnoreCodes" , m_ignore ); }
| GslErrorException::~GslErrorException | ( | ) | [virtual] |
destructor (protected and virtual)
destructor (protetced and virtual)
Definition at line 54 of file GslErrorException.cpp.
{}
| StatusCode GslErrorException::handle | ( | const GslError & | error ) | const [virtual] |
handle the GSL error
| error | error to be handled |
Implements IGslErrorHandler.
Definition at line 66 of file GslErrorException.cpp.
{
StatusCode sc = StatusCode::SUCCESS ;
// code to be ignored?
if( m_ignore.end() != std::find( m_ignore.begin () ,
m_ignore.end () ,
error.code ) ) { return sc ; }
//
std::ostringstream message;
message << " GSL ErrorCode="
<< error.code << ": '" << error.reason << "' in the file '"
<< error.file << "' at the line " << error.line;
throw GaudiException( message.str() , "*GLS Error*" , StatusCode::FAILURE );
return StatusCode::SUCCESS ;
}
std::vector<int> GslErrorException::m_ignore [private] |
codes to be ignored:
Definition at line 56 of file GslErrorException.h.