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

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


Detailed Description

Base class for all exceptions defined in the module image.

Definition at line 23 of file imageException.hpp.

#include <imageException.hpp>

Inheritance diagram for jafar::image::ImageException:
Inheritance graph
[legend]

List of all members.

Public Types

enum  ExceptionId { INVALID_COLORSPACE_CONVERSION, OPENCV_ERROR, NOT_IMPLEMENTED }
 This enumeration defines exceptions id for the module image. More...

Public Member Functions

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

Static Public Member Functions

static void enableOpenC_VException ()
 Redirect OpenCV Error to Jafar Exception.

Static Protected Member Functions

static std::string exceptionIdToString (ExceptionId id_) throw ()
static int SendErrorToJafar (int status, const char *func_name, const char *err_msg, const char *file_name, int line, void *)

Protected Attributes

ExceptionId id

Member Enumeration Documentation

This enumeration defines exceptions id for the module image.

Enumerator:
INVALID_COLORSPACE_CONVERSION 

invalid color space convertion

Definition at line 30 of file imageException.hpp.


Constructor & Destructor Documentation

jafar::image::ImageException::ImageException ( 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:39 for Jafar by doxygen 1.7.6.1
LAAS-CNRS