#include <Rangedimexc.hh>
Inheritance diagram for RazorBack::Argexc_:


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_ () | |
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.
|
|
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] :-) |
|
|
|
|
|
Returns the acceptable lower limit.
Definition at line 127 of file Rangedimexc.hh. |
|
|
Returns the acceptable upper limit.
Definition at line 130 of file Rangedimexc.hh. |
|
|
Definition at line 110 of file Rangedimexc.hh. |
|
|
Definition at line 110 of file Rangedimexc.hh. |
|
|
Definition at line 113 of file Rangedimexc.hh. |
|
|
allowed range.
Definition at line 113 of file Rangedimexc.hh. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001