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

This class defines some standard exceptions to be used from all modules. More...


Detailed Description

This class defines some standard exceptions to be used from all modules.

For ease of use, the macros defined in jafarMacro.hpp. See also pageJafarError.

Definition at line 77 of file jafarException.hpp.

#include <jafarException.hpp>

Inheritance diagram for jafar::kernel::JafarException:
Inheritance graph
[legend]

List of all members.

Public Types

enum  ExceptionId {
  ASSERT, PRECONDITION, POSTCONDITION, INVARIANT,
  RUN_TIME, IO_STREAM, NUMERIC, INVALID_PARAM
}
 This enumeration defines exceptions id of JafarException. More...

Public Member Functions

 JafarException (ExceptionId id_, const std::string &message_, const std::string &module_, 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 of JafarException.

Enumerator:
ASSERT 

assertion not met

PRECONDITION 

precondition not met

POSTCONDITION 

postcondition not met

INVARIANT 

invariant not respected

RUN_TIME 

run time error, the programm should not end up here

IO_STREAM 

input/output error when using a c++ stream

NUMERIC 

numeric error

INVALID_PARAM 

invalid parameter value

Definition at line 82 of file jafarException.hpp.


Constructor & Destructor Documentation

jafar::kernel::JafarException::JafarException ( ExceptionId  id_,
const std::string &  message_,
const std::string &  module_,
const std::string &  file_,
int  line_ 
) throw ()

Constructor.

You should not use this constructor directly, prefer the macros.

Parameters:
id_exception id
message_message used for debug
module_module from which exception was thrown
file_where the exception was thown
line_where the exception was thown

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