EMAN2
Public Member Functions | List of all 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]

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. More...
 
- Public Member Functions inherited from EMAN::E2Exception
 E2Exception (const string &file="", int line=0, const string &desc_str="", const string &objname_str="")
 Contructor. More...
 
virtual ~E2Exception () throw ()
 
virtual const char * what () const throw ()
 The E2Exception information. More...
 

Additional Inherited Members

- Protected Attributes inherited from EMAN::E2Exception
string filename
 
int linenum
 
string desc
 
string objname
 

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 317 of file exception.h.

Constructor & Destructor Documentation

◆ _OutofRangeException()

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 320 of file exception.h.

324 : E2Exception(file, line, desc_str, objname_str)
325 {
326 stringstream ss;
327 ss << input << " out of range [" << low << "," << high << "]";
328 desc = ss.str();
329 }
E2Exception(const string &file="", int line=0, const string &desc_str="", const string &objname_str="")
Contructor.
Definition: exception.h:77

References EMAN::E2Exception::desc.

Member Function Documentation

◆ name()

const char * EMAN::_OutofRangeException::name ( ) const
inlinevirtual

The name of this E2Exception class.

Returns
The name of this E2Exception class.

Reimplemented from EMAN::E2Exception.

Definition at line 331 of file exception.h.

331{ return "OutofRangeException"; }

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