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

RazorBack::Argexc_ Class Reference

Argexc_: argument range exception. More...

#include <Rangedimexc.hh>

Inheritance diagram for RazorBack::Argexc_:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 Argexc_ (const char *Thnm, double Bad, double Min, double Max, bool F=false)
 Constructs an argument range exception thrown by Thnm. More...

double min_val () const
 Returns the acceptable lower limit.

double max_val () const
 Returns the acceptable upper limit.


Static Public Attributes

const double NEG_INFINITY
const double POS_INFINITY

Protected Attributes

double Minval
double Maxval
 allowed range.


Private Methods

 Argexc_ ()

Detailed Description

Argexc_: argument range exception.

Stores the bad value and the allowed range. The range specification may use the symbolic constants NEG_INFINITY and POS_INFINITY. All of these must be specified (no empty default ctor). Usage: throw Argexc_("wrong_function", Badval, Minval, Maxval)

Definition at line 106 of file Rangedimexc.hh.


Constructor & Destructor Documentation

RazorBack::Argexc_::Argexc_ ( const char * Thnm,
double Bad,
double Min,
double Max,
bool F = false )
 

Constructs an argument range exception thrown by Thnm.

Min and/or Max can be specified as NEG_INFINITY and POS_INFINITY. If Min>Max, then they will be swapped silently, however, it is not checked whether Bad is really outside the range [Min..Max] :-)

RazorBack::Argexc_::Argexc_ ( ) [private]
 


Member Function Documentation

double RazorBack::Argexc_::min_val ( ) const [inline]
 

Returns the acceptable lower limit.

Definition at line 127 of file Rangedimexc.hh.

double RazorBack::Argexc_::max_val ( ) const [inline]
 

Returns the acceptable upper limit.

Definition at line 130 of file Rangedimexc.hh.


Member Data Documentation

const double RazorBack::Argexc_::NEG_INFINITY [static]
 

Definition at line 110 of file Rangedimexc.hh.

const double RazorBack::Argexc_::POS_INFINITY [static]
 

Definition at line 110 of file Rangedimexc.hh.

double RazorBack::Argexc_::Minval [protected]
 

Definition at line 113 of file Rangedimexc.hh.

double RazorBack::Argexc_::Maxval [protected]
 

allowed range.

Definition at line 113 of file Rangedimexc.hh.


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