EMAN2
Public Member Functions
EMAN::_OutofRangeException Class Reference

Used when the given value is out of range. More...

#include <exception.h>

Inheritance diagram for EMAN::_OutofRangeException:
Inheritance graph
[legend]
Collaboration diagram for EMAN::_OutofRangeException:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 _OutofRangeException (int low, int high, int input, const string &file="unknown", int line=0, const string &desc_str="", const string &objname_str="")
const char * name () const
 The name of this E2Exception class.

Detailed Description

Used when the given value is out of range.

parameters: 1. low The lower limit of the valid range. 2. high The uppper limit of the valid range. 3. input The given, out-of-range value. 4. objname The name of the variable holding the value.

Definition at line 325 of file exception.h.


Constructor & Destructor Documentation

EMAN::_OutofRangeException::_OutofRangeException ( int  low,
int  high,
int  input,
const string &  file = "unknown",
int  line = 0,
const string &  desc_str = "",
const string &  objname_str = "" 
) [inline]

Definition at line 328 of file exception.h.

References EMAN::E2Exception::desc.

                        : E2Exception(file, line, desc_str, objname_str)
                {
                        stringstream ss;
                        ss << input << " out of range [" << low << "," << high << "]";
                        desc = ss.str();
                }

Member Function Documentation

const char* EMAN::_OutofRangeException::name ( ) const [inline, virtual]

The name of this E2Exception class.

Returns:
The name of this E2Exception class.

Reimplemented from EMAN::E2Exception.

Definition at line 339 of file exception.h.

{ return "OutofRangeException"; }

The documentation for this class was generated from the following file: