Classes | Namespaces | Defines | 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

namespace  GENAPI_NAMESPACE
 

Part of the generic device API.


Defines

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

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)

Detailed Description

Definition in file Exception.h.


Define Documentation

#define ACCESS_EXCEPTION_NODE   GenApi::ExceptionReporterNode<GenICam::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) );

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));

Range check for int64.

Definition at line 181 of file Exception.h.

#define DYNAMICCAST_EXCEPTION_NODE   GenApi::ExceptionReporterNode<GenICam::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::ExceptionReporterNode<GenICam::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::ExceptionReporterNode<GenICam::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::ExceptionReporterNode<GenICam::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::ExceptionReporterNode<GenICam::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::ExceptionReporterNode<GenICam::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::ExceptionReporterNode<GenICam::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::ExceptionReporterNode<GenICam::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_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:08