ADTF  v2.14.3
error.h File Reference

Global Error Definitions. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FAC_CODE_NULL   0
 Facility code zero.
 
#define _FACILITY_MASK_   0x3FFC0000L
 For general error handling functionality see Basic Error Codes.
 
#define _ERROR_CODE_MASK_   0x0003FFFFL
 For general error handling functionality see Basic Error Codes.
 
#define _MAKE_ERROR(s)    ( - ( ( s ) ) )
 For general error handling functionality see Basic Error Codes.
 
#define IS_OK(s)    ( ( s ) >= 0L )
 Check if result is OK.
 
#define IS_FAILED(s)    ( ( s ) < 0L )
 Check if result is failed.
 
#define ERROR_CODE(s)    ( ( - ( s ) ) & _ERROR_CODE_MASK_ )
 Extract the error code from a given tResult value.
 
#define RETURN_NOERROR   return ERR_NOERROR
 Return status ERR_NOERROR from the current function. More...
 
#define RETURN_ERROR(code)    return (code)
 Return from the current function using a specific error code. More...
 
#define RETURN_IF_FAILED(s)    { tResult __result = (s); if (IS_FAILED(__result)) { RETURN_ERROR(__result); } }
 Return from current function is expression is failed. More...
 
#define RETURN_IF_POINTER_NULL(_ptr)    if ( (tVoid*) ( _ptr ) == NULL ) { RETURN_ERROR(ERR_POINTER); }
 Return from current function is pointer is NULL. More...
 
#define ASSERT_IF_POINTER_NULL(_ptr)
 This macro asserts if a pointer is NULL. More...
 
#define ERR_RESSOURCE_IN_USE   ERR_RESOURCE_IN_USE
 fixed spelling error, but kept the old version for compatibility
 

Enumerations

enum  {
  ERR_NOERROR = 0L, ERR_UNKNOWN = _MAKE_ERROR( 2 ), ERR_UNEXPECTED = _MAKE_ERROR( 3 ), ERR_POINTER = _MAKE_ERROR( 4 ),
  ERR_INVALID_ARG = _MAKE_ERROR( 5 ), ERR_INVALID_FUNCTION = _MAKE_ERROR( 6 ), ERR_INVALID_ADDRESS = _MAKE_ERROR( 7 ), ERR_INVALID_HANDLE = _MAKE_ERROR( 8 ),
  ERR_INVALID_FLAGS = _MAKE_ERROR( 9 ), ERR_INVALID_INDEX = _MAKE_ERROR( 10), ERR_INVALID_FILE = _MAKE_ERROR( 11 ), ERR_MEMORY = _MAKE_ERROR( 12 ),
  ERR_TIMEOUT = _MAKE_ERROR( 13 ), ERR_OUT_OF_SYNC = _MAKE_ERROR( 14 ), ERR_RESOURCE_IN_USE = _MAKE_ERROR( 15 ), ERR_NOT_IMPL = _MAKE_ERROR( 16 ),
  ERR_NO_INTERFACE = _MAKE_ERROR( 17 ), ERR_NO_CLASS = _MAKE_ERROR( 18 ), ERR_NOT_SUPPORTED = _MAKE_ERROR( 19 ), ERR_NOT_FOUND = _MAKE_ERROR( 20 ),
  ERR_CANCELLED = _MAKE_ERROR( 21 ), ERR_RETRY = _MAKE_ERROR( 22 ), ERR_FILE_NOT_FOUND = _MAKE_ERROR( 23 ), ERR_PATH_NOT_FOUND = _MAKE_ERROR( 24 ),
  ERR_ACCESS_DENIED = _MAKE_ERROR( 25 ), ERR_NOT_READY = _MAKE_ERROR( 26 ), ERR_OPEN_FAILED = _MAKE_ERROR( 27 ), ERR_IO_INCOMPLETE = _MAKE_ERROR( 28 ),
  ERR_IO_PENDING = _MAKE_ERROR( 29 ), ERR_NOACCESS = _MAKE_ERROR( 30 ), ERR_BAD_DEVICE = _MAKE_ERROR( 31 ), ERR_DEVICE_IO = _MAKE_ERROR( 32 ),
  ERR_DEVICE_NOT_READY = _MAKE_ERROR( 33 ), ERR_DEVICE_IN_USE = _MAKE_ERROR( 34 ), ERR_NOT_CONNECTED = _MAKE_ERROR( 35 ), ERR_UNKNOWN_FORMAT = _MAKE_ERROR( 36 ),
  ERR_NOT_INITIALISED = _MAKE_ERROR( 37 ), ERR_FAILED = _MAKE_ERROR( 38 ), ERR_END_OF_FILE = _MAKE_ERROR( 39 ), ERR_INVALID_STATE = _MAKE_ERROR( 40 ),
  ERR_EXCEPTION_RAISED = _MAKE_ERROR( 41 ), ERR_INVALID_TYPE = _MAKE_ERROR( 42 ), ERR_EMPTY = _MAKE_ERROR( 43 ), ERR_INVALID_VERSION = _MAKE_ERROR( 44 ),
  ERR_INVALID_LICENSE = _MAKE_ERROR( 45 ), ERR_SERVICE_NOT_FOUND = _MAKE_ERROR( 46 ), ERR_DAU = _MAKE_ERROR( 47 ), ERR_IDLE_NOWAIT = _MAKE_ERROR( 48 ),
  ERR_OUT_OF_RANGE = _MAKE_ERROR( 49 ), ERR_KNOWN_PROBLEM = _MAKE_ERROR( 50 )
}
 Return status ERR_FAILED from the current function. More...
 

Detailed Description

Global Error Definitions.

See also
Basic Error Codes

Copyright © Audi Electronics Venture GmbH. All rights reserved

Author
FOX0IY4
Date
2013-11-22 15:06:18 +0100 (Fr, 22 Nov 2013)
Revision
306
Remarks

Definition in file error.h.

Macro Definition Documentation

#define ASSERT_IF_POINTER_NULL (   _ptr)

This macro asserts if a pointer is NULL.

This assertion is only present in Debug builds and it does nothing on Release builds.

Definition at line 71 of file error.h.

#define RETURN_NOERROR   return ERR_NOERROR

Return status ERR_NOERROR from the current function.

This requires the calling function's return type to be tResult.

Definition at line 48 of file error.h.

Referenced by cPluginTemplate::__cmd(), cPluginTemplate::__cmd_enter(), cPluginTemplate::__cmd_leave(), cMemoryPtr::Alloc(), cFileRingBuffer< ADDITIONAL_DATA, ALIGNMENT >::AppendItem(), cMemoryPtr::Assign(), cMemoryPtr::Attach(), cHashMap< KEY, VALUE >::Clear(), cTestSampleReceiver< tSampleData >::Connect(), cRecorderStreamCreator::ConnectWithRecorder(), cObjectPtr< adtf::IPinEventSink >::CopyTo(), cMemoryPtr::CopyTo(), cObjectSafePtr< T >::CopyTo(), CreateAddonsMenu(), cClassFactory< T >::CreateInstance(), cObjectClassFactory< T >::CreateInstance(), cPooledClassFactory< T >::CreateInstance(), cTypeClassFactory< T >::CreateInstance(), cPluginTemplate::CreateInstance(), cSampleClassFactory< T >::CreateInstance(), CreateServices(), cPlayerStreamEventSink::DeInit(), cMemoryPtr::Detach(), cSmartPtr< T >::DetachTo(), cTestSampleReceiver< tSampleData >::Disconnect(), cRecorderStreamCreator::DisconnectFromRecorder(), cSampleClassFactory< T >::EnableLogging(), cClassFactory< T >::EnumClasses(), cObjectClassFactory< T >::EnumClasses(), cTypeClassFactory< T >::EnumClasses(), cPooledClassFactory< T >::EnumClasses(), cPluginTemplate::EnumClasses(), cSampleClassFactory< T >::EnumClasses(), cHashMap< KEY, VALUE >::Erase(), cFileRingBuffer< ADDITIONAL_DATA, ALIGNMENT >::FillForAlignment(), cMultiArray< T >::Get(), cClassInfo::GetInterface(), cClassFactory< T >::GetInterface(), cObjectClassFactory< T >::GetInterface(), cPooledClassFactory< T >::GetInterface(), cTypeClassFactory< T >::GetInterface(), cServerBindingFilter< interfaceT >::GetInterface(), cTestSink::GetInterface(), cObjectList::GetInterface(), cPluginTemplate::GetInterface(), cSampleSource::GetNextChunk(), cSampleSource::GetNextChunkInfo(), cSampleSource::GetStreamInfo(), cSampleClassFactory< T >::GetUsedSamplesInfo(), cSystem::cAdapterInfo::HandleAdapterInfo(), cPlayerStreamEventSink::Init(), cFilterProxy< tFilterType >::Init(), initialize(), cObjectList::Initialize(), cMultiArray< T >::InitializeDataStore(), cHashMap< KEY, VALUE >::Insert(), LoadGlobalsAndConfig(), LoadPlugins(), cDDL::MoveChild(), cObjectList::Next(), cClientBindingFilter< interfaceT >::OnDynamicBindingEvent(), cPlayerStreamEventSink::OnPinEvent(), cTestSampleReceiver< tSampleData >::OnPinEvent(), cTestSink::OnPinEvent(), cFilterProxy< tFilterType >::OnPinEvent(), cLockFreeStack< T * >::Pop(), cLockFreeQueue< T >::Pop(), cFileRingBuffer< ADDITIONAL_DATA, ALIGNMENT >::PopFront(), cFilterProxy< tFilterType >::PropertyChanged(), cLockFreeStack< T * >::Push(), cLockFreeQueue< T >::Push(), cServerBindingFilter< interfaceT >::RegisterBindings(), cClientBindingFilter< interfaceT >::RegisterBindings(), cRecorderStreamCreator::RegisterSyncSink(), regService(), cObjectList::Reset(), cRecorderStreamCreator::Run(), cFilterProxy< tFilterType >::Run(), cFilterProxyBase::cSubFilterContainer::Set(), cMultiArray< T >::Set(), cSampleClassFactory< T >::SetAllocator(), cPooledClassFactory< T >::SetCacheSize(), cSampleClassFactory< T >::SetCacheSize(), cTypeClassFactory< T >::SetMediaDescManager(), cFilterProxy< tFilterType >::SetState(), cFilterProxy< tFilterType >::Shutdown(), cObjectList::Skip(), cFilterProxy< tFilterType >::Start(), cFileRingBuffer< ADDITIONAL_DATA, ALIGNMENT >::StartAppending(), cFileRingBuffer< ADDITIONAL_DATA, ALIGNMENT >::StartWrappingAround(), cFilterProxy< tFilterType >::Stop(), cPooledClassFactory< T >::UnrefObject(), cSampleClassFactory< T >::UnrefObject(), and cRecorderStreamCreator::UnregisterSyncSink().

Enumeration Type Documentation

anonymous enum

Return status ERR_FAILED from the current function.

This requires the calling function's return type to be tResult. Return status ERR_UNEXPECTED from the current function. This requires the calling function's return type to be tResult. Error constants

Enumerator
ERR_NOERROR 

0

ERR_UNKNOWN 

-2

ERR_UNEXPECTED 

-3

ERR_POINTER 

-4

ERR_INVALID_ARG 

-5

ERR_INVALID_FUNCTION 

-6

ERR_INVALID_ADDRESS 

-7

ERR_INVALID_HANDLE 

-8

ERR_INVALID_FLAGS 

-9

ERR_INVALID_INDEX 

-10

ERR_INVALID_FILE 

-11

ERR_MEMORY 

-12

ERR_TIMEOUT 

-13

ERR_OUT_OF_SYNC 

-14

ERR_RESOURCE_IN_USE 

-15

ERR_NOT_IMPL 

-16

ERR_NO_INTERFACE 

-17

ERR_NO_CLASS 

-18

ERR_NOT_SUPPORTED 

-19

ERR_NOT_FOUND 

-20

ERR_CANCELLED 

-21

ERR_RETRY 

-22

ERR_FILE_NOT_FOUND 

-23

ERR_PATH_NOT_FOUND 

-24

ERR_ACCESS_DENIED 

-25

ERR_NOT_READY 

-26

ERR_OPEN_FAILED 

-27

ERR_IO_INCOMPLETE 

-28

ERR_IO_PENDING 

-29

ERR_NOACCESS 

-30

ERR_BAD_DEVICE 

-31

ERR_DEVICE_IO 

-32

ERR_DEVICE_NOT_READY 

-33

ERR_DEVICE_IN_USE 

-34

ERR_NOT_CONNECTED 

-35

ERR_UNKNOWN_FORMAT 

-36

ERR_NOT_INITIALISED 

-37

ERR_FAILED 

-38

ERR_END_OF_FILE 

-39

ERR_INVALID_STATE 

-40

ERR_EXCEPTION_RAISED 

-41

ERR_INVALID_TYPE 

-42

ERR_EMPTY 

-43

ERR_INVALID_VERSION 

-44

ERR_INVALID_LICENSE 

-45

ERR_SERVICE_NOT_FOUND 

-46

ERR_DAU 

-47

ERR_IDLE_NOWAIT 

-48

ERR_OUT_OF_RANGE 

-49

ERR_KNOWN_PROBLEM 

-50

Definition at line 85 of file error.h.


Copyright © Audi Electronics Venture GmbH. All rights reserved. (Generated on Fri Mar 22 2019 by doxygen 1.8.10)