Classes | Namespaces | Macros
GCException.h File Reference

      Standard GenICam Exceptions
More...

#include <exception>
#include <cassert>
#include <cstdarg>
#include <sstream>
#include <stdio.h>
#include <stdarg.h>
#include "GCTypes.h"
#include "GCString.h"

Classes

class  GenICam::GenericException
 GenICam's exception class. More...
 
class  GenICam::InvalidArgumentException
 Exception fired if an argument is invalid. More...
 
class  GenICam::OutOfRangeException
 Exception fired if an argument is out of range. More...
 
class  GenICam::PropertyException
 Exception fired if a property access fails. More...
 
class  GenICam::RuntimeException
 Runtime exception. More...
 
class  GenICam::LogicalErrorException
 Exception to be thrown to indicate logical errors in program flow. More...
 
class  GenICam::AccessException
 Exception to be thrown to indicate an access error. More...
 
class  GenICam::TimeoutException
 Exception to be thrown to indicate an timout error. More...
 
class  GenICam::DynamicCastException
 Exception to be thrown to indicate the the result of a dynamic cast was zero. More...
 
class  GenICam::ExceptionReporter< E >
 printf like creation of exceptions More...
 

Namespaces

 GenICam
 Contains definitions of GenICam types and exceptions.
 

Macros

#define DECLARE_EXCEPTION(name)
 
#define GENERIC_EXCEPTION   GenICam::ExceptionReporter<GenICam::GenericException>(__FILE__, __LINE__, "GenericException" ).Report
 Fires an exception, e.g. throw EXCEPTION("%ld too large", Value);.
 
#define INVALID_ARGUMENT_EXCEPTION   GenICam::ExceptionReporter<GenICam::InvalidArgumentException>(__FILE__, __LINE__, "InvalidArgumentException" ).Report
 Fires an invalid argument exception, e.g. throw INVALID_ARGUMENT("%ld too large", Value);.
 
#define OUT_OF_RANGE_EXCEPTION   GenICam::ExceptionReporter<GenICam::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::ExceptionReporter<GenICam::PropertyException>(__FILE__, __LINE__, "PropertyException" ).Report
 Fires an property exception, e.g. throw PROPERTY_EXCEPTION("%ld too large", Value);.
 
#define RUNTIME_EXCEPTION   GenICam::ExceptionReporter<GenICam::RuntimeException>(__FILE__, __LINE__, "RuntimeException" ).Report
 Fires a runtime exception, e.g. throw RUNTIME_EXCEPTION("buh!")
 
#define LOGICAL_ERROR_EXCEPTION   GenICam::ExceptionReporter<GenICam::LogicalErrorException>(__FILE__, __LINE__, "LogicalErrorException" ).Report
 Fires a logical error exception, e.g. throw LOGICAL_ERROR_EXCEPTION("Should never reach this point")
 
#define ACCESS_EXCEPTION   GenICam::ExceptionReporter<GenICam::AccessException>(__FILE__, __LINE__, "AccessException" ).Report
 Fires a access error exception, e.g. throw ACCESS_ERROR_EXCEPTION("Not everybody")
 
#define TIMEOUT_EXCEPTION   GenICam::ExceptionReporter<GenICam::TimeoutException>(__FILE__, __LINE__,"TimeoutException" ).Report
 Fires a timeout error exception, e.g. throw TIMEOUT_EXCEPTION("Not everybody")
 
#define DYNAMICCAST_EXCEPTION   GenICam::ExceptionReporter<GenICam::DynamicCastException>(__FILE__, __LINE__, "DynamicCastException" ).Report
 Fires a dynamic cast exception, e.g. throw DYNAMICCAST_EXCEPTION("Not everybody")
 
#define CHECK_RANGE_I64(_Value, _Min, _Max, _Inc)
 Range check for int64.
 
#define CHECK_RANGE_FLT(_Value, _Min, _Max)
 Range check for float.
 
#define CHECK_DYNAMIC_CAST_POINTER(_Pointer)
 Checks if a dynamic_cast is possible.
 

Detailed Description

      Standard GenICam Exceptions

© 2006-2014 Basler (Tue Jul 22 2014 11:41:22)