EMAN2
Public Member Functions | List of all members
EMAN::_InvalidValueException Class Reference

Used when an invalid integer value is given. More...

#include <exception.h>

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

Public Member Functions

template<class T >
 _InvalidValueException (T val, const string &file="unknown", int line=0, const string &desc_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 an invalid integer value is given.

Parameters:

  1. val The invalid integer value.
  2. desc Description of the situation.

Definition at line 269 of file exception.h.

Constructor & Destructor Documentation

◆ _InvalidValueException()

template<class T >
EMAN::_InvalidValueException::_InvalidValueException ( val,
const string &  file = "unknown",
int  line = 0,
const string &  desc_str = "" 
)
inline

Definition at line 273 of file exception.h.

275 : E2Exception(file, line, desc_str)
276 {
277 stringstream ss;
278 ss << val;
279 objname = ss.str();
280 }
E2Exception(const string &file="", int line=0, const string &desc_str="", const string &objname_str="")
Contructor.
Definition: exception.h:77

References EMAN::E2Exception::objname.

Member Function Documentation

◆ name()

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

The name of this E2Exception class.

Returns
The name of this E2Exception class.

Reimplemented from EMAN::E2Exception.

Definition at line 281 of file exception.h.

281{ return "InvalidValueException"; }

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