TeException Class Reference

#include <TeException.h>


Detailed Description

Examples:

TePDIBDFilter_test.cpp, TePDIClassification_test.cpp, TePDIColorTransform_test.cpp, TePDICorrelationMatching_test.cpp, TePDIDecorrelationEnhancement_test.cpp, TePDIFFT_test.cpp, TePDIFilterMask_test.cpp, TePDIFusion_test.cpp, TePDIHants_test.cpp, TePDIHaralick_test.cpp, TePDIHistogram_test.cpp, TePDIInterpolator_test.cpp, TePDIJointHistogram_test.cpp, TePDILinearFilter_test.cpp, TePDIMathFunctions_test.cpp, TePDIMatrixFunctions_test.cpp, TePDIMIMatching_test.cpp, TePDIMixModel_test.cpp, TePDIMorfFilter_test.cpp, TePDIParameters_test.cpp, TePDIPrincipalComponents_test.cpp, TePDIRaster2Vector_test.cpp, TePDIRegister_test.cpp, TePDIRgbPalette_test.cpp, TePDISegmentation_test.cpp, TePDISensorSimulator_test.cpp, TePDIStatistic_test.cpp, and TePDIWavelets_test.cpp.

Definition at line 43 of file TeException.h.


Public Member Functions

TeErrorType code () const
string message () const
 TeException (TeErrorType msgCode, const string &userText="", bool hasErrno=false)
virtual ~TeException ()

Protected Attributes

TeErrorType msgCode_
 code associated with TeException
string userText_
 message associated with TeException

Constructor & Destructor Documentation

TeException::TeException ( TeErrorType  msgCode,
const string userText = "",
bool  hasErrno = false 
)

Definition at line 33 of file TeException.cpp.

References TeErrorLog::insert(), TeSingleton< TeErrorLog >::instance(), and userText_.

00033                                                                                      :
00034                 userText_ ( userText )
00035 {                       
00036                 if ( haserrno )
00037                         userText_ = userText + " " + strerror ( errno );
00038                 
00039                 TeErrorLog::instance().insert( msgCode, userText_ );
00040 }

virtual TeException::~TeException (  )  [inline, virtual]

Definition at line 52 of file TeException.h.

00052 {}  // base class


Member Function Documentation

TeErrorType TeException::code (  )  const

Definition at line 49 of file TeException.cpp.

References msgCode_.

00050 {
00051         return msgCode_;
00052 }

string TeException::message (  )  const

Examples:
TePDIBDFilter_test.cpp, TePDIClassification_test.cpp, TePDIColorTransform_test.cpp, TePDICorrelationMatching_test.cpp, TePDIDecorrelationEnhancement_test.cpp, TePDIFFT_test.cpp, TePDIFilterMask_test.cpp, TePDIFusion_test.cpp, TePDIHants_test.cpp, TePDIHaralick_test.cpp, TePDIHistogram_test.cpp, TePDIInterpolator_test.cpp, TePDIJointHistogram_test.cpp, TePDILinearFilter_test.cpp, TePDIMathFunctions_test.cpp, TePDIMatrixFunctions_test.cpp, TePDIMIMatching_test.cpp, TePDIMixModel_test.cpp, TePDIMorfFilter_test.cpp, TePDIParameters_test.cpp, TePDIPrincipalComponents_test.cpp, TePDIRaster2Vector_test.cpp, TePDIRegister_test.cpp, TePDIRgbPalette_test.cpp, TePDISegmentation_test.cpp, TePDISensorSimulator_test.cpp, TePDIStatistic_test.cpp, and TePDIWavelets_test.cpp.

Definition at line 43 of file TeException.cpp.

References TeSingleton< TeErrorLog >::instance(), TeErrorLog::message(), msgCode_, and userText_.

Referenced by TePDIAlgorithm::Apply(), TeFirebird::columnExist(), main(), TeFirebird::tableExist(), and testCoverage().

00044 {
00045         return TeErrorLog::instance().message ( msgCode_ ) + " " + userText_;
00046 }


Field Documentation

TeErrorType TeException::msgCode_ [protected]

Definition at line 64 of file TeException.h.

Referenced by code(), and message().

string TeException::userText_ [protected]

Definition at line 67 of file TeException.h.

Referenced by message(), and TeException().


The documentation for this class was generated from the following files:
Generated on Sun Jul 29 04:06:00 2012 for TerraLib - Development Source by  doxygen 1.5.3