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

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


Detailed Description

Base class for all exceptions defined in the module modeler.

Definition at line 17 of file modelerException.hpp.

#include <modelerException.hpp>

Inheritance diagram for jafar::modeler::ModelerException:
Inheritance graph
[legend]

List of all members.

Public Types

enum  ExceptionId {
  WRONG_SIZE, WRONG_TYPE, FILE_READING_ERROR, EMPTY_MESH,
  NO_FEATURES_FOUND, NO_CAMERA, EXISTING_ID, NO_MATCH_FOUND,
  CAMERA_UNSET
}
 This enumeration defines exceptions id for the module modeler. More...

Public Member Functions

 ModelerException (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 modeler.

Enumerator:
WRONG_SIZE 

XYZ files either have 3 or 6 columns.

WRONG_TYPE 

modeler doesn't know how to handle this type

FILE_READING_ERROR 

modeler encountred a problem reading a file

EMPTY_MESH 

the given mesh is empty

NO_FEATURES_FOUND 

no interest features found in this mesh

NO_CAMERA 

no camera with such id is provided

EXISTING_ID 

specified id already exists

NO_MATCH_FOUND 

no data corresponds to the given id

CAMERA_UNSET 

in single camera context, the camera is unset

Definition at line 24 of file modelerException.hpp.


Constructor & Destructor Documentation

jafar::modeler::ModelerException::ModelerException ( 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:43 for Jafar by doxygen 1.7.6.1
LAAS-CNRS