te::common::LoggedException Class Reference

A class that automatically logs the exception message. More...

#include <LoggedException.h>

Inheritance diagram for te::common::LoggedException:
te::common::Exception

Public Member Functions

virtual int code () const throw ()
 It gets the exception code. More...
 
virtual const char * getClassName () const throw ()
 It return the exception class name. More...
 
 LoggedException (const std::string &what) throw ()
 It initializes a new LoggedException. More...
 
 LoggedException (const char *const what) throw ()
 It initializes a new LoggedException. More...
 
virtual const char * what () const throw ()
 It outputs the exception message. More...
 
virtual ~LoggedException () throw ()
 Destructor. More...
 

Protected Attributes

int m_code
 The internal exception code. More...
 
std::string m_msg
 The internal exception message. More...
 

Detailed Description

A class that automatically logs the exception message.

Definition at line 43 of file LoggedException.h.

Constructor & Destructor Documentation

te::common::LoggedException::LoggedException ( const std::string &  what)
throw (
)
explicit

It initializes a new LoggedException.

Parameters
whatA brief description of what has raised the exception.

Definition at line 30 of file LoggedException.cpp.

References TE_LOG_INFO.

te::common::LoggedException::LoggedException ( const char *const  what)
throw (
)
explicit

It initializes a new LoggedException.

Parameters
whatA brief description of what has raised the exception.

Definition at line 36 of file LoggedException.cpp.

References TE_LOG_INFO, and ~LoggedException().

te::common::LoggedException::~LoggedException ( )
throw (
)
virtualdefault

Destructor.

Referenced by LoggedException().

Member Function Documentation

int te::common::Exception::code ( ) const
throw (
)
virtualinherited

It gets the exception code.

Returns
The exception code.

Definition at line 51 of file src/terralib/common/Exception.cpp.

References te::common::Exception::m_code.

Referenced by te::vp::Merge::executeMemory(), te::qt::widgets::DrawThread::run(), and te::attributefill::VectorToVectorMemory::run().

const char * te::common::LoggedException::getClassName ( ) const
throw (
)
virtual

It return the exception class name.

Returns
the exception class name.

Reimplemented from te::common::Exception.

Definition at line 44 of file LoggedException.cpp.

const char * te::common::Exception::what ( ) const
throw (
)
virtualinherited

It outputs the exception message.

Returns
The exception message.

Definition at line 56 of file src/terralib/common/Exception.cpp.

References te::common::Exception::m_msg.

Referenced by te::qt::widgets::DataSetTableView::addColumn(), te::rp::FeederConstRasterDirectory::applyGeometryRestriction(), te::qt::widgets::CloudDetectionDialog::applyPreview(), te::qt::widgets::DataSetTableView::changeColumnData(), te::qt::plugins::terralib4::TL4ConverterWizard::commit(), CreateDataSourceAndUpdateManager(), te::rp::Contrast::execDecorrelationEnhancement(), te::qt::widgets::RasterizationWizard::execute(), te::rp::PCAFusion::execute(), te::qt::widgets::CloudDetectionDialog::execute(), te::vp::Union::executeMemory(), te::vp::Identity::executeMemory(), te::vp::Difference::executeMemory(), te::vp::Merge::executeMemory(), te::qt::widgets::ObservationWizard::finish(), te::qt::widgets::TrajectoryWizard::finish(), te::qt::widgets::TimeSeriesWizard::finish(), te::mnt::CreateIsolinesDialog::getMinMax(), te::qt::af::BaseApplication::init(), te::qt::widgets::MixtureModelWizardPage::loadMixtureModelComponents(), te::rp::PCAFusion::loadRessampledRaster(), te::mnt::Tin::LoadTinQGIS(), main(), te::vp::MakeGeometryValid::makeValidMemory(), te::vp::MakeGeometryValid::makeValidQuery(), te::rp::FeederConstRasterDirectory::moveNext(), te::rp::FeederConstRasterDirectory::moveTo(), te::qt::widgets::QueryDataSourceDialog::onApplySelToolButtonClicked(), te::qt::widgets::QueryDataSourceDialog::onCreateLayerToolButtonClicked(), te::qt::plugins::cellspace::CreateCellularSpaceDialog::onCreatePushButtonClicked(), te::qt::plugins::edit::ToolBar::onCreateUndoViewActivated(), te::qt::plugins::edit::ToolBar::onDeleteGeometryToolActivated(), te::qt::widgets::ChartDisplayWidget::onExportToolButtonnClicked(), te::mnt::CreateIsolinesDialog::onInputComboBoxChanged(), te::qt::widgets::ArithmeticOpDialogForm::onLoadPushButtonClicked(), te::qt::widgets::SymbolSelectorDialog::onLoadSymbolLibraryPushButtonPressed(), te::mnt::SlopeDialog::onOkPushButtonClicked(), te::mnt::MNTGenerationDialog::onOkPushButtonClicked(), te::mnt::ImageGenerationDialog::onOkPushButtonClicked(), te::vp::MergeDialog::onOkPushButtonClicked(), te::vp::UnionDialog::onOkPushButtonClicked(), te::attributefill::VectorToVectorDialog::onOkPushButtonClicked(), te::qt::widgets::RasterInfoWidget::onOpenFileDlgToolButtonClicked(), TerraView::onOpenProjectTriggered(), te::qt::widgets::LoadArithmeticOpDialog::onRemoveOperation(), te::qt::plugins::edit::ToolBar::onSaveActivated(), te::qt::widgets::ArithmeticOpDialogForm::onSavePushButtonClicked(), te::qt::widgets::OutputRasterWidget::onTargetFileToolButtonClicked(), te::qt::widgets::CloudDetectionDialog::onTargetFileToolButtonClicked(), te::vp::LineToPolygonDialog::onTargetFileToolButtonPressed(), te::vp::PolygonToLineDialog::onTargetFileToolButtonPressed(), te::attributefill::VectorToRasterDialog::onTargetFileToolButtonPressed(), te::vp::MultipartToSinglepartDialog::onTargetFileToolButtonPressed(), te::qt::widgets::VectorizationWizardPage::onTargetFileToolButtonPressed(), te::vp::IntersectionDialog::onTargetFileToolButtonPressed(), te::vp::MergeDialog::onTargetFileToolButtonPressed(), te::vp::GeometricOpDialog::onTargetFileToolButtonPressed(), te::vp::BufferDialog::onTargetFileToolButtonPressed(), te::attributefill::RasterToVectorDialog::onTargetFileToolButtonPressed(), te::vp::UnionDialog::onTargetFileToolButtonPressed(), te::attributefill::VectorToVectorDialog::onTargetFileToolButtonPressed(), te::vp::DifferenceDialog::onTargetFileToolButtonPressed(), te::vp::IdentityDialog::onTargetFileToolButtonPressed(), te::qt::widgets::RasterizationWizardPage::onTargetFileToolButtonPressed(), te::vp::DissolveDialog::onTargetFileToolButtonPressed(), te::vp::CheckGeomValidityDialog::onVerifyPushButtonClicked(), te::common::operator<<(), PrintDataSets(), readWkts(), te::qt::widgets::DataSetTableView::removeColumn(), te::qt::widgets::DataSetTableView::renameColumn(), te::rp::FeederConstRasterDirectory::reset(), te::vp::LineToPolygonMemory::run(), te::vp::PolygonToLineMemory::run(), te::qt::widgets::DrawThread::run(), te::vp::BufferMemory::run(), te::attributefill::VectorToVectorMemory::run(), te::vp::MultipartToSinglepart::runAll(), te::vp::MultipartToSinglepart::runSelected(), te::mnt::Profile::runTINProfile(), te::attributefill::VectorToVectorOp::save(), te::qt::widgets::DataSetTableView::saveEditions(), te::vp::GeometricOpMemory::SetAggregByAttribute(), te::vp::GeometricOpMemory::SetAggregObj(), te::vp::GeometricOpMemory::SetAllObjects(), te::qt::widgets::DataSetTableModel::setData(), TablePopupFilter::showStatistics(), te::qt::widgets::DataSetTableView::sortByColumns(), te::vp::Dissolve::threadUnion(), UnitSRS(), and UOMManage().

Member Data Documentation

int te::common::Exception::m_code
protectedinherited

The internal exception code.

Definition at line 105 of file src/terralib/common/Exception.h.

Referenced by te::common::Exception::code().

std::string te::common::Exception::m_msg
protectedinherited

The internal exception message.

Definition at line 106 of file src/terralib/common/Exception.h.

Referenced by te::common::Exception::what().


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