EMAN2
Classes | Namespaces | Macros
exception.h File Reference
#include <log.h>
#include <string>
#include <sstream>
Include dependency graph for exception.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  EMAN::E2Exception
 E2Exception class is the parent class of all EMAN2 E2Exceptions. More...
 
class  EMAN::_NotExistingObjectException
 Used when an object type, like an EMObject type, doesn't exist. More...
 
class  EMAN::_ImageFormatException
 Used when an image is not in the expected format. More...
 
class  EMAN::_ImageDimensionException
 Used when an image is not in the expected dimension. More...
 
class  EMAN::_FileAccessException
 Used when a file access error occurs. More...
 
class  EMAN::_ImageReadException
 Used when an error occurs at image reading time. More...
 
class  EMAN::_ImageWriteException
 Used when an error occurs at image writing time. More...
 
class  EMAN::_NullPointerException
 Used when a NULL is given to a pointer that should not be NULL. More...
 
class  EMAN::_TypeException
 Used when a type cast error occurs. More...
 
class  EMAN::_InvalidValueException
 Used when an invalid integer value is given. More...
 
class  EMAN::_InvalidStringException
 Used when an invalid (format) string is given. More...
 
class  EMAN::_OutofRangeException
 Used when the given value is out of range. More...
 
class  EMAN::_InvalidCallException
 
class  EMAN::_InvalidParameterException
 
class  EMAN::_EmptyContainerException
 Used when an argument container is empty, such as a vector. More...
 
class  EMAN::_BadAllocException
 Used when memory allocation goes wrong... i.e. More...
 
class  EMAN::_UnexpectedBehaviorException
 Used when internal behavior is unexpected A generic kind of exception. More...
 

Namespaces

namespace  EMAN
 E2Exception class.
 

Macros

#define NotExistingObjectException(objname, desc)    _NotExistingObjectException(objname, __FILE__, __LINE__, desc)
 
#define ImageFormatException(desc)   _ImageFormatException(desc, __FILE__, __LINE__)
 
#define ImageDimensionException(desc)   _ImageDimensionException(desc, __FILE__, __LINE__)
 
#define FileAccessException(filename)   _FileAccessException(filename, __FILE__, __LINE__)
 
#define ImageReadException(filename, desc)    _ImageReadException(filename, __FILE__, __LINE__, desc)
 
#define ImageWriteException(imagename, desc)    _ImageWriteException(imagename, __FILE__, __LINE__, desc)
 
#define NullPointerException(desc)   _NullPointerException(__FILE__, __LINE__, desc)
 
#define TypeException(desc, type)   _TypeException(desc, type, __FILE__, __LINE__)
 
#define InvalidValueException(val, desc)    _InvalidValueException(val, __FILE__, __LINE__, desc)
 
#define InvalidStringException(str, desc)    _InvalidStringException(str, __FILE__, __LINE__, desc)
 
#define OutofRangeException(low, high, input, objname)    _OutofRangeException(low, high, input, __FILE__, __LINE__, objname)
 
#define InvalidCallException(desc)   _InvalidCallException(__FILE__, __LINE__, desc)
 
#define InvalidParameterException(desc)   _InvalidParameterException(__FILE__, __LINE__, desc)
 
#define EmptyContainerException(desc)   _EmptyContainerException(__FILE__, __LINE__, desc)
 
#define BadAllocException(desc)   _BadAllocException(__FILE__, __LINE__, desc)
 
#define UnexpectedBehaviorException(desc)   _UnexpectedBehaviorException(__FILE__, __LINE__, desc)
 

Macro Definition Documentation

◆ BadAllocException

#define BadAllocException (   desc)    _BadAllocException(__FILE__, __LINE__, desc)

Definition at line 387 of file exception.h.

◆ EmptyContainerException

#define EmptyContainerException (   desc)    _EmptyContainerException(__FILE__, __LINE__, desc)

Definition at line 374 of file exception.h.

◆ FileAccessException

#define FileAccessException (   filename)    _FileAccessException(filename, __FILE__, __LINE__)

Definition at line 187 of file exception.h.

◆ ImageDimensionException

#define ImageDimensionException (   desc)    _ImageDimensionException(desc, __FILE__, __LINE__)

Definition at line 166 of file exception.h.

◆ ImageFormatException

#define ImageFormatException (   desc)    _ImageFormatException(desc, __FILE__, __LINE__)

Definition at line 147 of file exception.h.

◆ ImageReadException

#define ImageReadException (   filename,
  desc 
)     _ImageReadException(filename, __FILE__, __LINE__, desc)

Definition at line 204 of file exception.h.

◆ ImageWriteException

#define ImageWriteException (   imagename,
  desc 
)     _ImageWriteException(imagename, __FILE__, __LINE__, desc)

Definition at line 223 of file exception.h.

◆ InvalidCallException

#define InvalidCallException (   desc)    _InvalidCallException(__FILE__, __LINE__, desc)

Definition at line 348 of file exception.h.

◆ InvalidParameterException

#define InvalidParameterException (   desc)    _InvalidParameterException(__FILE__, __LINE__, desc)

Definition at line 361 of file exception.h.

◆ InvalidStringException

#define InvalidStringException (   str,
  desc 
)     _InvalidStringException(str, __FILE__, __LINE__, desc)

Definition at line 306 of file exception.h.

◆ InvalidValueException

#define InvalidValueException (   val,
  desc 
)     _InvalidValueException(val, __FILE__, __LINE__, desc)

Definition at line 285 of file exception.h.

◆ NotExistingObjectException

#define NotExistingObjectException (   objname,
  desc 
)     _NotExistingObjectException(objname, __FILE__, __LINE__, desc)

Definition at line 130 of file exception.h.

◆ NullPointerException

#define NullPointerException (   desc)    _NullPointerException(__FILE__, __LINE__, desc)

Definition at line 241 of file exception.h.

◆ OutofRangeException

#define OutofRangeException (   low,
  high,
  input,
  objname 
)     _OutofRangeException(low, high, input, __FILE__, __LINE__, objname)

Definition at line 334 of file exception.h.

◆ TypeException

#define TypeException (   desc,
  type 
)    _TypeException(desc, type, __FILE__, __LINE__)

Definition at line 261 of file exception.h.

◆ UnexpectedBehaviorException

#define UnexpectedBehaviorException (   desc)    _UnexpectedBehaviorException(__FILE__, __LINE__, desc)

Definition at line 400 of file exception.h.