Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Protected Member Functions | Protected Attributes
jafar::bundler::BundlerException Class Reference

Base class for all exceptions defined in the module bundler. More...


Detailed Description

Base class for all exceptions defined in the module bundler.

Definition at line 17 of file bundlerException.hpp.

#include <bundlerException.hpp>

Inheritance diagram for jafar::bundler::BundlerException:
Inheritance graph
[legend]

List of all members.

Public Types

enum  ExceptionId {
  VIEWSMANAGER_UNKNOWN_CAMERA_TYPE, VIEWSMANAGER_POS_NOT_FOUND, ADAPTER_INVALID_CONSTRAINT, FILESYSTEM_ERROR,
  POS_ALEREADY_EXISTS, NO_PIXEL_DATA, NO_PROJECTION_DATA, NO_DATA_SAVED,
  BAD_SIZES, NO_ID_GIVEN, NO_CONTAINER_GIVEN
}
 This enumeration defines exceptions id for the module bundler. More...

Public Member Functions

 BundlerException (ExceptionId id_, const std::string &message_, const std::string &file_, int line_) throw ()
 Constructor.
ExceptionId getExceptionId () const throw ()

Static Protected Member Functions

static std::string exceptionIdToString (ExceptionId id_) throw ()

Protected Attributes

ExceptionId id

Member Enumeration Documentation

This enumeration defines exceptions id for the module bundler.

Enumerator:
VIEWSMANAGER_UNKNOWN_CAMERA_TYPE 

ViewsManager: unknown camera type.

VIEWSMANAGER_POS_NOT_FOUND 

ViewsManager: index of pos file not found.

ADAPTER_INVALID_CONSTRAINT 

ModelerAdapter: invalid outliers control value.

FILESYSTEM_ERROR 

File system error.

POS_ALEREADY_EXISTS 

A reference with same id aleaready exists.

NO_PIXEL_DATA 

no pixel data corresponds to the view id

NO_PROJECTION_DATA 

no projection data corresponds to the view id

BAD_SIZES 

< no data was saved

the data set size doesn't match entered data

NO_ID_GIVEN 

no id were given

NO_CONTAINER_GIVEN 

given an empty container while in multi camera mode

Definition at line 24 of file bundlerException.hpp.


Constructor & Destructor Documentation

jafar::bundler::BundlerException::BundlerException ( ExceptionId  id_,
const std::string &  message_,
const std::string &  file_,
int  line_ 
) throw ()

Constructor.

You should not use this constructor directly, prefer macros jfrThrowEx or jfrCreateEx which fill for you parameters file_ and line_.

Parameters:
id_exception id
message_message used for debug
file_where the exception was thrown
line_where the exception was thrown

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:32 for Jafar by doxygen 1.7.6.1
LAAS-CNRS