| # Gaudi Framework, version v21r10p1 |

Home |  | Generated: 29 Jul 2010

# GslErrorPrint Class Reference

Concrete GSL eror handler It is just prints the GSL errors. More...

`#include <GslErrorPrint.h>`

Inheritance diagram for GslErrorPrint:

[legend]
Collaboration diagram for GslErrorPrint:

[legend]

List of all members.

## Public Member Functions
virtual StatusCode | handle (const GslError &error) const
| handle the GSL error
| GslErrorPrint (const std::string &type, const std::string &name, const IInterface *parent)
| Standard constructor.
virtual | ~GslErrorPrint ()
| destructor (protected and virtual)

## Detailed Description

Concrete GSL eror handler It is just prints the GSL errors.

Author:
  Vanya Belyaev Ivan.Belyaev@itep.ru

Date:
  30/04/2002

Definition at line 24 of file GslErrorPrint.h.

## Constructor & Destructor Documentation

GslErrorPrint::GslErrorPrint | ( | const std::string & | type,
|  | const std::string & | name,
|  | const IInterface * | parent |
| ) |  |  |

Standard constructor.

Declaration of the Tool Factory.

Parameters:

  | type | tool type (?)
  | name | tool name
  | parent | pointer to parent

See also:
  ToolFactory

  IToolFactory

  IFactory Standard constructor

Parameters:

  | type | tool type (?)
  | name | tool name
  | parent | pointer to parent

Definition at line 40 of file GslErrorPrint.cpp.

    00043   : base_class ( type, name , parent )
    00044 {}

GslErrorPrint::~GslErrorPrint | ( |  | ) | `[virtual]`

destructor (protected and virtual)

destructor (protetced and virtual)

Definition at line 50 of file GslErrorPrint.cpp.

    00050 {}

## Member Function Documentation

StatusCode GslErrorPrint::handle | ( | const GslError & | error | ) | const`[virtual]`

handle the GSL error

See also:
  IGslErrorHandler

Parameters:

  | error | error to be handled

See also:
  GslError

Returns:
  status code

Implements IGslErrorHandler.

Definition at line 62 of file GslErrorPrint.cpp.

    00063 {
    00064   MsgStream log( msgSvc() , name() );
    00065   log << MSG::ERROR
    00066       << " GSL code " << error.code
    00067       << " Message '" << error.reason << "'"
    00068       << " File '"    << error.file   << "'"
    00069       << " Line "     << error.line   << endmsg ;
    00070   //
    00071   return StatusCode::SUCCESS ;
    00072 }

The documentation for this class was generated from the following files:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r10p1/GaudiGSL/src/Components/GslErrorPrint.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r10p1/GaudiGSL/src/Components/GslErrorPrint.cpp