Classes | Namespaces | Macros | Enumerations | Functions
Exception.h File Reference
#include "Base/GCException.h"
#include "INodePrivate.h"
Include dependency graph for Exception.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GENAPI_NAMESPACE::EMethodClass
 
class  GENAPI_NAMESPACE::ExceptionReporterNode< E >
 

Namespaces

 GENAPI_NAMESPACE
 Part of the generic device API.
 

Macros

#define ACCESS_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::AccessException>(__FILE__, __LINE__, this, "AccessException" ).Report
 Fires a access error exception, e.g. throw ACCESS_ERROR_EXCEPTION("Not everybody") More...
 
#define CHECK_RANGE_FLT_NODE(_Value, _Min, _Max)
 Range check for float. More...
 
#define CHECK_RANGE_I64_NODE(_Value, _Min, _Max, _Inc)
 Range check for int64. More...
 
#define DYNAMICCAST_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::DynamicCastException>(__FILE__, __LINE__, this, "DynamicCastException" ).Report
 Fires a dynamic cast exception, e.g. throw DYNAMICCAST_EXCEPTION("Not everybody") More...
 
#define GENERIC_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::GenericException>(__FILE__, __LINE__, this, "GenericException" ).Report
 Fires an exception, e.g. throw EXCEPTION("%ld too large", Value);. More...
 
#define INVALID_ARGUMENT_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::InvalidArgumentException>(__FILE__, __LINE__, this, "InvalidArgumentException" ).Report
 Fires an invalid argument exception, e.g. throw INVALID_ARGUMENT("%ld too large", Value);. More...
 
#define LOGICAL_ERROR_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::LogicalErrorException>(__FILE__, __LINE__, this, "LogicalErrorException" ).Report
 Fires a logical error exception, e.g. throw LOGICAL_ERROR_EXCEPTION("Should never reach this point") More...
 
#define OUT_OF_RANGE_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::OutOfRangeException>(__FILE__, __LINE__, this, "OutOfRangeException" ).Report
 Fires an out of range exception, e.g. throw OUT_OF_RANGE_EXCEPTION("%ld too large", Value);. More...
 
#define PROPERTY_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::PropertyException>(__FILE__, __LINE__, this, "PropertyException" ).Report
 Fires an property exception, e.g. throw PROPERTY_EXCEPTION("%ld too large", Value);. More...
 
#define RUNTIME_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::RuntimeException>(__FILE__, __LINE__, this, "RuntimeException" ).Report
 Fires a runtime exception, e.g. throw RUNTIME_EXCEPTION("buh!") More...
 
#define TIMEOUT_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::TimeoutException>(__FILE__, __LINE__, this, "TimeoutException" ).Report
 Fires a timeout error exception, e.g. throw TIMEOUT_EXCEPTION("Not everybody") More...
 

Enumerations

enum  GENAPI_NAMESPACE::EMethod {
  GENAPI_NAMESPACE::meUndefined, GENAPI_NAMESPACE::meGetAccessMode, GENAPI_NAMESPACE::meToString, GENAPI_NAMESPACE::meFromString,
  GENAPI_NAMESPACE::meGetValue, GENAPI_NAMESPACE::meSetValue, GENAPI_NAMESPACE::meGetMin, GENAPI_NAMESPACE::meGetMax,
  GENAPI_NAMESPACE::meGetInc, GENAPI_NAMESPACE::meExecute, GENAPI_NAMESPACE::meIsDone, GENAPI_NAMESPACE::meSetIntValue,
  GENAPI_NAMESPACE::meGetIntValue, GENAPI_NAMESPACE::meSet, GENAPI_NAMESPACE::meGet, GENAPI_NAMESPACE::meGetIncMode,
  GENAPI_NAMESPACE::meGetListOfValidValues
}
 denotes through which method call the node tree was entered More...
 

Functions

GENICAM_NAMESPACE::gcstring GENAPI_NAMESPACE::getEntryPoint (INodeMap *nodeMap)
 

Macro Definition Documentation

#define ACCESS_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::AccessException>(__FILE__, __LINE__, this, "AccessException" ).Report

Fires a access error exception, e.g. throw ACCESS_ERROR_EXCEPTION("Not everybody")

Definition at line 172 of file Exception.h.

#define CHECK_RANGE_FLT_NODE (   _Value,
  _Min,
  _Max 
)
Value:
if ((_Value) < (_Min)) \
throw OUT_OF_RANGE_EXCEPTION_NODE( "Value %f must be greater than or equal %f.", (_Value), (_Min) ); \
else if ((_Value) > (_Max)) \
throw OUT_OF_RANGE_EXCEPTION_NODE( "Value %f must be smaller than or equal %f.", (_Value), (_Max) );
#define OUT_OF_RANGE_EXCEPTION_NODE
Fires an out of range exception, e.g. throw OUT_OF_RANGE_EXCEPTION("%ld too large", Value);.
Definition: Exception.h:160

Range check for float.

Definition at line 192 of file Exception.h.

#define CHECK_RANGE_I64_NODE (   _Value,
  _Min,
  _Max,
  _Inc 
)
Value:
if((int64_t)(_Value) < (int64_t)(_Min)) \
throw OUT_OF_RANGE_EXCEPTION_NODE("Value = %" FMT_I64 "d must be equal or greater than Min = %" FMT_I64 "d.", (int64_t)(_Value), (int64_t)(_Min)); \
else if((int64_t)(_Value) > (int64_t)(_Max)) \
throw OUT_OF_RANGE_EXCEPTION_NODE("Value = %" FMT_I64 "d must be equal or smaller than Max = %" FMT_I64 "d.", (int64_t)(_Value), (int64_t)(_Max)); \
else if ( 0 >= _Inc ) \
throw LOGICAL_ERROR_EXCEPTION_NODE("Increment must be larger than 0."); \
else if( ((int64_t)(_Value) - (int64_t)(_Min)) % (int64_t)(_Inc) != 0) \
throw OUT_OF_RANGE_EXCEPTION_NODE("The difference between Value = %" FMT_I64 "d and Min = %" FMT_I64 "d must be dividable without rest by Inc = %" FMT_I64 "d.", (int64_t)(_Value), (int64_t)(_Min), (int64_t)(_Inc));
__int64 int64_t
Definition: config-win32.h:21
#define LOGICAL_ERROR_EXCEPTION_NODE
Fires a logical error exception, e.g. throw LOGICAL_ERROR_EXCEPTION("Should never reach this point") ...
Definition: Exception.h:169
#define OUT_OF_RANGE_EXCEPTION_NODE
Fires an out of range exception, e.g. throw OUT_OF_RANGE_EXCEPTION("%ld too large", Value);.
Definition: Exception.h:160
#define FMT_I64
Definition: Compatibility.h:68

Range check for int64.

Definition at line 181 of file Exception.h.

#define DYNAMICCAST_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::DynamicCastException>(__FILE__, __LINE__, this, "DynamicCastException" ).Report

Fires a dynamic cast exception, e.g. throw DYNAMICCAST_EXCEPTION("Not everybody")

Definition at line 178 of file Exception.h.

#define GENERIC_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::GenericException>(__FILE__, __LINE__, this, "GenericException" ).Report

Fires an exception, e.g. throw EXCEPTION("%ld too large", Value);.

Definition at line 154 of file Exception.h.

#define INVALID_ARGUMENT_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::InvalidArgumentException>(__FILE__, __LINE__, this, "InvalidArgumentException" ).Report

Fires an invalid argument exception, e.g. throw INVALID_ARGUMENT("%ld too large", Value);.

Definition at line 157 of file Exception.h.

#define LOGICAL_ERROR_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::LogicalErrorException>(__FILE__, __LINE__, this, "LogicalErrorException" ).Report

Fires a logical error exception, e.g. throw LOGICAL_ERROR_EXCEPTION("Should never reach this point")

Definition at line 169 of file Exception.h.

#define OUT_OF_RANGE_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::OutOfRangeException>(__FILE__, __LINE__, this, "OutOfRangeException" ).Report

Fires an out of range exception, e.g. throw OUT_OF_RANGE_EXCEPTION("%ld too large", Value);.

Definition at line 160 of file Exception.h.

#define PROPERTY_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::PropertyException>(__FILE__, __LINE__, this, "PropertyException" ).Report

Fires an property exception, e.g. throw PROPERTY_EXCEPTION("%ld too large", Value);.

Definition at line 163 of file Exception.h.

#define RUNTIME_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::RuntimeException>(__FILE__, __LINE__, this, "RuntimeException" ).Report

Fires a runtime exception, e.g. throw RUNTIME_EXCEPTION("buh!")

Definition at line 166 of file Exception.h.

#define TIMEOUT_EXCEPTION_NODE   GENAPI_NAMESPACE::ExceptionReporterNode<GENICAM_NAMESPACE::TimeoutException>(__FILE__, __LINE__, this, "TimeoutException" ).Report

Fires a timeout error exception, e.g. throw TIMEOUT_EXCEPTION("Not everybody")

Definition at line 175 of file Exception.h.



rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 19:10:54