gslmm::exception_policy Class Reference
[Error Handling]

#include <gslmm/error/error_handler.hh>

List of all members.


Detailed Description

An error handling policy.

Unfortunately, this does work, as the gsl_error function is specified as not throwing exceptions. Really annoying.

Examples:

error/error-test.cc.


Public Member Functions

void handle (const std::string &reason, const std::string &file, int line, int code)


Member Function Documentation

void gslmm::exception_policy::handle const std::string &  reason,
const std::string &  file,
int  line,
int  code
[inline]
 

Handle an error.

Throws an exception with the appropiate error string.

Parameters:
reason Reason for the error
file In which file the error occured
line on which code line the error occured
code The error code.
Exceptions:
std::runtime_error Always thrown.


The documentation for this class was generated from the following file:
Top of page Last update Tue May 9 10:11:31 2006
Christian Holm
Created by DoxyGen 1.4.6