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

RazorBack::Toofewexc_ Class Reference

Class Toofewexc_: an exception object that stores an unsigned integer and can be thrown if there was not enough data available. More...

#include <Statexc.hh>

Inheritance diagram for RazorBack::Toofewexc_:

Inheritance graph
[legend]
Collaboration diagram for RazorBack::Toofewexc_:

Collaboration graph
[legend]
List of all members.

Public Methods

 Toofewexc_ (const char *Thnm, const char *Name, unsigned int No=0, bool F=false)
 ctor: Thnm is the name of the method throwing the exception, Name is the name of the variable that should have been more, No is the number that was too few, F is the severity indicator (false, the default, is non-fatal, true is fatal).

const string& varname () const
 Returns the name of the thing that should have been higher.

unsigned int no () const
 Returns the number that was not high enough.


Private Methods

 Toofewexc_ ()

Private Attributes

string Varname
 the thing that was not enough.

unsigned int N
 the number that was too low.


Detailed Description

Class Toofewexc_: an exception object that stores an unsigned integer and can be thrown if there was not enough data available.

Usage: throw(Statexc_("bad_function", N)

Definition at line 38 of file Statexc.hh.


Constructor & Destructor Documentation

RazorBack::Toofewexc_::Toofewexc_ ( const char * Thnm,
const char * Name,
unsigned int No = 0,
bool F = false ) [explicit]
 

ctor: Thnm is the name of the method throwing the exception, Name is the name of the variable that should have been more, No is the number that was too few, F is the severity indicator (false, the default, is non-fatal, true is fatal).

RazorBack::Toofewexc_::Toofewexc_ ( ) [private]
 


Member Function Documentation

const string & RazorBack::Toofewexc_::varname ( ) const [inline]
 

Returns the name of the thing that should have been higher.

Definition at line 59 of file Statexc.hh.

unsigned int RazorBack::Toofewexc_::no ( ) const [inline]
 

Returns the number that was not high enough.

Definition at line 62 of file Statexc.hh.


Member Data Documentation

string RazorBack::Toofewexc_::Varname [private]
 

the thing that was not enough.

Definition at line 43 of file Statexc.hh.

unsigned int RazorBack::Toofewexc_::N [private]
 

the number that was too low.

Definition at line 44 of file Statexc.hh.


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