Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

RazorBack::Utilsexc_ Class Reference

Utilsexc_: the exception base class for the Razorback C++ library. More...

#include <Utilsexc.hh>

Inheritance diagram for RazorBack::Utilsexc_:

Inheritance graph
[legend]
List of all members.

Public Methods

 Utilsexc_ (const char *Thnm, bool F=false, const char *Msg=NULL)
 Init with throwing function name Thnm, and fatality indicator F. More...

const string& throw_name () const
 Returns the function name causing the exception.

const string& error_message () const
 Returns the complete formatted error message.

bool is_fatal () const
 Returns the fatality indicator value.


Protected Methods

void print_prefix (ostringstream &Ost) const

Protected Attributes

string Message
 stores the formatted message, derived classes need access.


Private Methods

 Utilsexc_ ()

Private Attributes

string Throwname
 for storing throw function name.

bool Fatal
 true for fatal errors, false for warnings.


Detailed Description

Utilsexc_: the exception base class for the Razorback C++ library.

Can store the name of the function which has thrown it and a flag indicating warnings or fatal conditions.

Definition at line 45 of file Utilsexc.hh.


Constructor & Destructor Documentation

RazorBack::Utilsexc_::Utilsexc_ ( const char * Thnm,
bool F = false,
const char * Msg = NULL ) [explicit]
 

Init with throwing function name Thnm, and fatality indicator F.

By default it is false, indicating that the exceptional condition was not that bad. Msg, if not NULL (the default) or "" may contain a verbal description of the error. Use this facility when it is not worthwhile to derive an exception class for the error you wish to signal.

RazorBack::Utilsexc_::Utilsexc_ ( ) [private]
 


Member Function Documentation

const string & RazorBack::Utilsexc_::throw_name ( ) const [inline]
 

Returns the function name causing the exception.

Definition at line 69 of file Utilsexc.hh.

const string & RazorBack::Utilsexc_::error_message ( ) const [inline]
 

Returns the complete formatted error message.

Definition at line 72 of file Utilsexc.hh.

bool RazorBack::Utilsexc_::is_fatal ( ) const [inline]
 

Returns the fatality indicator value.

Definition at line 75 of file Utilsexc.hh.

void RazorBack::Utilsexc_::print_prefix ( ostringstream & Ost ) const [protected]
 


Member Data Documentation

string RazorBack::Utilsexc_::Throwname [private]
 

for storing throw function name.

Definition at line 49 of file Utilsexc.hh.

bool RazorBack::Utilsexc_::Fatal [private]
 

true for fatal errors, false for warnings.

Definition at line 50 of file Utilsexc.hh.

string RazorBack::Utilsexc_::Message [protected]
 

stores the formatted message, derived classes need access.

Definition at line 53 of file Utilsexc.hh.


The documentation for this class was generated from the following file:
Generated at Wed Aug 21 09:33:38 2002 for The Razorback C++ Library: Exceptions by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001