IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Member Functions | Protected Types | Protected Attributes | List of all members
ipsdk::BaseException Class Reference

Base exception class for IPSDK library. More...

#include <BaseException.h>

Inheritance diagram for ipsdk::BaseException:
ipsdk::bench::IPSDKBenchmarkToolsException ipsdk::color::PyIPSDKIPLColorException ipsdk::core::IPSDKCoreException ipsdk::geom::IPSDKGeometryException ipsdk::hard::IPSDKHardwareException ipsdk::image::file::IPSDKImageFileException ipsdk::image::IPSDKImageException ipsdk::image::tools::IPSDKBaseImageToolsException ipsdk::imaproc::IPSDKImageProcessingException ipsdk::IPSDKBaseDataException ipsdk::IPSDKSerializationException ipsdk::IPSDKUtilException ipsdk::lic::IPSDKLicensingException ipsdk::math::IPSDKMathException ipsdk::processor::IPSDKBaseProcessingException ipsdk::python::PyIPSDKBaseException ipsdk::python::PyIPSDKIPLAdvancedMorphologyException ipsdk::python::PyIPSDKIPLArithmeticException ipsdk::python::PyIPSDKIPLBasicMorphologyException ipsdk::python::PyIPSDKIPLBinarizationException ipsdk::python::PyIPSDKIPLClassificationException ipsdk::python::PyIPSDKIPLFeatureDetectionException ipsdk::python::PyIPSDKIPLFilteringException ipsdk::python::PyIPSDKIPLGeometricTransformException ipsdk::python::PyIPSDKIPLGlobalMeasureException ipsdk::python::PyIPSDKIPLIntensityTransformException ipsdk::python::PyIPSDKIPLLinearAlgebraException ipsdk::python::PyIPSDKIPLLogicalException ipsdk::python::PyIPSDKIPLMachineLearningException ipsdk::python::PyIPSDKIPLRegistrationException ipsdk::python::PyIPSDKIPLShapeAnalysisException ipsdk::python::PyIPSDKIPLShapeSegmentationException ipsdk::python::PyIPSDKIPLStatsException ipsdk::python::PyIPSDKIPLUtilityException ipsdk::python::PyIPSDKUnitTestToolsException ipsdk::shape::analysis::IPSDKBaseShapeAnalysisException ipsdk::shape::segmentation::IPSDKBaseShapeSegmentationException ipsdk::tcpip::IPSDKCommException ipsdk::UnHandleException ipsdk::unittest::IPSDKUnitTestToolsException

Public Member Functions

const char * what () const throw ()
 recovery of error string associated to exception
 
const std::string & getMsg () const
 recovery of error message associated to exception
 
const char * getFunctionName () const
 recovery of function name associated to exception
 
const char * getFilePath () const
 recovery of file path associated to exception
 
ipUInt32 getLineIdx () const
 recovery of line number associated to exception
 
const BaseExceptiongetExcpFromReThrow () const
 recovery of pointer on previous exception More...
 
Constructors and destructors
 BaseException ()
 Default constructor.
 
 BaseException (const std::string &msg, const char *functionName, const char *filePath, ipUInt32 lineIdx)
 Constructor with message and source code location. More...
 
 BaseException (const std::string &msg, const char *functionName, const char *filePath, ipUInt32 lineIdx, const BaseException &exceptionFromReThrow)
 Constructor for rethrow of isdk::BaseException with message and source code location. More...
 
 BaseException (const std::string &msg, const char *functionName, const char *filePath, ipUInt32 lineIdx, const std::exception &exceptionFromReThrow)
 Constructor for rethrow of std::exception with message and source code location. More...
 
 BaseException (const BaseException &e)
 Copy constructor.
 
BaseExceptionoperator= (const BaseException &e)
 Copy operator.
 
virtual ~BaseException () throw ()
 Destructor.
 

Protected Types

typedef boost::scoped_ptr< BaseExceptionBaseExceptionPtr
 BaseException scoped pointer.
 

Protected Attributes

std::string _msg
 message associed to exception
 
const char * _functionName
 function name associated to exception
 
const char * _filePath
 file path associated to exception
 
ipUInt32 _lineIdx
 line number associated to exception
 
BaseExceptionPtr _pExcpFromReThrow
 previous exception from rethrow
 

Detailed Description

Base exception class for IPSDK library.

Author
E. Noirfalise
Date
2013/2/15

Constructor & Destructor Documentation

◆ BaseException() [1/3]

ipsdk::BaseException::BaseException ( const std::string &  msg,
const char *  functionName,
const char *  filePath,
ipUInt32  lineIdx 
)

Constructor with message and source code location.

Parameters
msgMessage passed to loggin system
functionNamefunction name for source code location
filePathfile path for source code location
lineIdxline index for source code location

◆ BaseException() [2/3]

ipsdk::BaseException::BaseException ( const std::string &  msg,
const char *  functionName,
const char *  filePath,
ipUInt32  lineIdx,
const BaseException exceptionFromReThrow 
)

Constructor for rethrow of isdk::BaseException with message and source code location.

Parameters
msgMessage passed to loggin system
functionNamefunction name for source code location
filePathfile path for source code location
lineIdxline index for source code location
exceptionFromReThrowpreviously thrown exception

◆ BaseException() [3/3]

ipsdk::BaseException::BaseException ( const std::string &  msg,
const char *  functionName,
const char *  filePath,
ipUInt32  lineIdx,
const std::exception &  exceptionFromReThrow 
)

Constructor for rethrow of std::exception with message and source code location.

Parameters
msgMessage passed to loggin system
functionNamefunction name for source code location
filePathfile path for source code location
lineIdxline index for source code location
exceptionFromReThrowpreviously thrown exception

Member Function Documentation

◆ getExcpFromReThrow()

const ipsdk::BaseException * ipsdk::BaseException::getExcpFromReThrow ( ) const
inline

recovery of pointer on previous exception

Attention
may be null

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