Classes | Namespaces | Defines | Functions
GCException.h File Reference
#include <cassert>
#include <cstdarg>
#include <exception>
#include <sstream>
#include <stdio.h>
#include <stdarg.h>
#include <Base/GCTypes.h>
#include <Base/GCString.h>
Include dependency graph for GCException.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GENICAM_NAMESPACE::ExceptionReporter< E >
 printf like creation of exceptions More...
class  GENICAM_NAMESPACE::GenericException
 GenICam's exception class. More...

Namespaces

namespace  GENICAM_NAMESPACE

Defines

#define ACCESS_EXCEPTION   GENICAM_NAMESPACE::ExceptionReporter<GENICAM_NAMESPACE::AccessException>(__FILE__, __LINE__, "AccessException" ).Report
 Fires a access exception, e.g. throw ACCESS_EXCEPTION("Not everybody")
#define BAD_ALLOC_EXCEPTION   GENICAM_NAMESPACE::ExceptionReporter<GENICAM_NAMESPACE::BadAllocException>(__FILE__, __LINE__, "BadAllocException" ).Report
 Fires a bad alloc exception, e.g. throw BAD_ALLOC_EXCEPTION();.
#define CHECK_DYNAMIC_CAST_POINTER(_Pointer)
 Checks if a dynamic_cast is possible.
#define CHECK_RANGE_FLT(_Value, _Min, _Max)
 Range check for float.
#define CHECK_RANGE_I64(_Value, _Min, _Max, _Inc)
 Range check for int64.
#define DECLARE_EXCEPTION(name)
 Creates an exception with the same functionality as the GenericException but being of different type.
#define DYNAMICCAST_EXCEPTION   GENICAM_NAMESPACE::ExceptionReporter<GENICAM_NAMESPACE::DynamicCastException>(__FILE__, __LINE__, "DynamicCastException" ).Report
 Fires a dynamic cast exception, e.g. throw DYNAMICCAST_EXCEPTION("Not everybody")
#define GENERIC_EXCEPTION   GENICAM_NAMESPACE::ExceptionReporter<GENICAM_NAMESPACE::GenericException>(__FILE__, __LINE__).Report
 Fires a generic exception, e.g. throw GENERIC_EXCEPTION("%ld too large", Value);.
#define INVALID_ARGUMENT_EXCEPTION   GENICAM_NAMESPACE::ExceptionReporter<GENICAM_NAMESPACE::InvalidArgumentException>(__FILE__, __LINE__, "InvalidArgumentException" ).Report
 Fires an invalid argument exception, e.g. throw INVALID_ARGUMENT_EXCEPTION("%ld too large", Value);.
#define LOGICAL_ERROR_EXCEPTION   GENICAM_NAMESPACE::ExceptionReporter<GENICAM_NAMESPACE::LogicalErrorException>(__FILE__, __LINE__, "LogicalErrorException" ).Report
 Fires a logical error exception, e.g. throw LOGICAL_ERROR_EXCEPTION("Should never reach this point")
#define OUT_OF_RANGE_EXCEPTION   GENICAM_NAMESPACE::ExceptionReporter<GENICAM_NAMESPACE::OutOfRangeException>(__FILE__, __LINE__, "OutOfRangeException" ).Report
 Fires an out of range exception, e.g. throw OUT_OF_RANGE_EXCEPTION("%ld too large", Value);.
#define PROPERTY_EXCEPTION   GENICAM_NAMESPACE::ExceptionReporter<GENICAM_NAMESPACE::PropertyException>(__FILE__, __LINE__, "PropertyException" ).Report
 Fires an property exception, e.g. throw PROPERTY_EXCEPTION("%ld too large", Value);.
#define RUNTIME_EXCEPTION   GENICAM_NAMESPACE::ExceptionReporter<GENICAM_NAMESPACE::RuntimeException>(__FILE__, __LINE__, "RuntimeException" ).Report
 Fires a runtime exception, e.g. throw RUNTIME_EXCEPTION("buh!")
#define TIMEOUT_EXCEPTION   GENICAM_NAMESPACE::ExceptionReporter<GENICAM_NAMESPACE::TimeoutException>(__FILE__, __LINE__,"TimeoutException" ).Report
 Fires a timeout error exception, e.g. throw TIMEOUT_EXCEPTION("Not everybody")

Functions

 GENICAM_NAMESPACE::DECLARE_EXCEPTION (BadAllocException)
 GENICAM_NAMESPACE::DECLARE_EXCEPTION (InvalidArgumentException)
 Exception fired if an argument is invalid.
 GENICAM_NAMESPACE::DECLARE_EXCEPTION (OutOfRangeException)
 Exception fired if an argument is out of range.
 GENICAM_NAMESPACE::DECLARE_EXCEPTION (PropertyException)
 Exception fired if a property access fails.
 GENICAM_NAMESPACE::DECLARE_EXCEPTION (RuntimeException)
 Runtime exception.
 GENICAM_NAMESPACE::DECLARE_EXCEPTION (LogicalErrorException)
 Exception to be thrown to indicate logical errors in program flow.
 GENICAM_NAMESPACE::DECLARE_EXCEPTION (AccessException)
 Exception to be thrown to indicate an access error.
 GENICAM_NAMESPACE::DECLARE_EXCEPTION (TimeoutException)
 Exception to be thrown to indicate an timeout error.
 GENICAM_NAMESPACE::DECLARE_EXCEPTION (DynamicCastException)
 Exception to be thrown to indicate the result of a dynamic cast was zero.

Detailed Description

Standard GenICam Exceptions

Definition in file GCException.h.



rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 18:42:47