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

Used when a type cast error occurs. More...

#include <exception.h>

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

Public Member Functions

 _TypeException (const string &desc_str, const string &type, const string &file="unknown", int line=0)
 
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 a type cast error occurs.

For example, when casting an EMData* type to a float type.

Parameters:

  1. desc Description of the situation.
  2. type The name of type causing trouble.

Definition at line 251 of file exception.h.

Constructor & Destructor Documentation

◆ _TypeException()

EMAN::_TypeException::_TypeException ( const string &  desc_str,
const string &  type,
const string &  file = "unknown",
int  line = 0 
)
inline

Definition at line 254 of file exception.h.

256 : E2Exception(file, line, desc_str, type) {}
E2Exception(const string &file="", int line=0, const string &desc_str="", const string &objname_str="")
Contructor.
Definition: exception.h:77

Member Function Documentation

◆ name()

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

The name of this E2Exception class.

Returns
The name of this E2Exception class.

Reimplemented from EMAN::E2Exception.

Definition at line 258 of file exception.h.

258{ return "TypeException"; }

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