Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Attributes | Friends
jafar::kernel::Exception Class Reference

Base class for all exceptions defined in jafar. More...


Detailed Description

Base class for all exceptions defined in jafar.

It cannot be instanciated, instead use exceptions classes defined in each module. Have a look at the module Module helloworld to see an example.

Todo:
print ExceptionId with an operator<< rather than a toString() method.

Definition at line 31 of file jafarException.hpp.

#include <jafarException.hpp>

Inherited by jafar::bundle::BundleException, jafar::bundler::BundlerException, jafar::calife::CalifeException, jafar::camera::CameraException, jafar::correl::CorrelException, jafar::cutter::CutterException, jafar::datareader::DatareaderException, jafar::ddf::DdfException, jafar::ddfsimu::DdfsimuException, jafar::delaunay::DelaunayException, jafar::display::DisplayException, jafar::dseg3d::Dseg3dException, jafar::dseg::DsegException, jafar::dtm::DtmException, jafar::facetsmap::FacetsmapException, jafar::fdetect::FdetectException, jafar::filter::FilterException, jafar::fusion::FusionException, jafar::gdal::GdalException, jafar::gdhe::GdheException, jafar::geom::GeomException, jafar::geomslam::GeomslamException, jafar::gfm::GfmException, jafar::gml::GmlException, jafar::gramer::GramerException, jafar::graphmap::GraphmapException, jafar::helloworld::HelloworldException, jafar::homography::HomographyException, jafar::hpm::HpmException, jafar::hseg::HsegException, jafar::icp::IcpException, jafar::image::ImageException, jafar::imdesc::ImdescException, jafar::jbn::JbnException, jafar::jmath::JmathException, jafar::jstereopixel::JStereopixelException, jafar::kernel::JafarException, jafar::kernel::KernelException, jafar::klt::KltException, jafar::learner::LearnerException, jafar::lgl::LglException, jafar::lgl::LglException, jafar::lines::LinesException, jafar::localizer::LocalizerException, jafar::locpano::LocpanoException, jafar::lsd::LsdException, jafar::mesher::MesherException, jafar::metac::MetacException, jafar::model3d::Model3dException, jafar::modeler::ModelerException, jafar::oracle::OracleException, jafar::p3d::P3dException, jafar::pfdesc::PfdescException, jafar::premodeler::PremodelerException, jafar::preprocessing::PreprocessingException, jafar::qdisplay::QdisplayException, jafar::quasidense::QuasidenseException, jafar::rednav::RednavException, jafar::ride::RideException, jafar::rtmaps::RtmapsException, jafar::rtslam::RtslamException, jafar::sams::SamsException, jafar::sas::SasException, jafar::sift::SiftException, jafar::simu::SimuException, jafar::simupaf::SimupafException, jafar::slam::SlamException, jafar::slamlines::SlamlinesException, jafar::slammm::SlammmException, jafar::slampt::SlamptException, jafar::slamptseg::SlamptsegException, jafar::slamseg::SlamsegException, jafar::spaf::SpafException, jafar::spafdb::SpafdbException, jafar::spafgraph::SpafgraphException, jafar::splamf::SplamfException, jafar::stereo::StereoException, jafar::stereosimu::StereosimuException, jafar::surf::SurfException, jafar::textures::TexturesException, jafar::traversability::TraversabilityException, jafar::velodyneutils::VelodyneutilsException, jafar::viewer3d::Viewer3dException, and jafar::vme::VmeException.

List of all members.

Public Member Functions

virtual std::string what () const throw ()
 Return the description of the exception.
void addTrace (std::string const &module_, std::string const &file_, int line_, std::string const &message_="")
 Append message_ to exception message.
 Exception (const std::string &message_, const std::string &module_, const std::string &id_, const std::string &file_, int line_) throw ()

Protected Attributes

std::string _what
 message to be displayed
std::list< std::string > trace
 calling stack crossed by the exception (use JFR_TRACE, JFR_TRACE_POINT and JFR_TRACE_END macros)

Friends

std::ostream & operator<< (std::ostream &s, const Exception &e)

Member Function Documentation

void jafar::kernel::Exception::addTrace ( std::string const &  module_,
std::string const &  file_,
int  line_,
std::string const &  message_ = "" 
)

Append message_ to exception message.

See also:
JFR_TRACE, JFR_TRACE_POINT, JFR_TRACE_END, JFR_TRACE_MESSAGE
virtual std::string jafar::kernel::Exception::what ( ) const throw () [virtual]

Return the description of the exception.

Example:

          ** Exception from jafar module foo
          Id: fooException::MY_FOO_ERROR
          foo.cpp:25: the given message
          

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:40 for Jafar by doxygen 1.7.6.1
LAAS-CNRS