Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

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.

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


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.

00339 { return "OutofRangeException"; }


The documentation for this class was generated from the following file:
Generated on Tue Jun 11 13:48:06 2013 for EMAN2 by  doxygen 1.3.9.1