Previous: 4.51.1.23. ogDataState type To the Table of Contents Next: 4.51.1.25. ogModeInfo type
4.51.1.23. ogDataState type Table of Contents 4.51.1.25. ogModeInfo type

- 4.51.1.24. -
Table of Contents
4. Standard Units
4.51. ObjGfx40 - ObjectGraphics 4.0 Unit
4.51.1. ObjGfx40 Unit Constants, Variables, and Data Types
4.51.1.24. ogErrorCode type


4.51.1.24. ogErrorCode type

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

The ogErrorCode enumerated type is used to reflect errros that occurred while performing critical operations. All non-critical functions in ObjGfx (e.g. ogSetPixel(), ogLine(), ogCopy(), et al), are designed to "fail quietly", which means that if an operation isn't possible it won't occur. All critical functions (e.g. ogCreate(), ogAlias(), ogClone()) will return TRUE/FALSE depending on whether they were successful. In the event a critical function failed and appropiate error checking did not occur (i.e. bail out on error) then all future operations should resolve without a crash.
Declaration:
type
  ogErrorCode =
    (ogOk,
     ogMemAllocFail,
     ogAlreadyOwner,
     ogNoSurface,
     ogNoPalette,
     ogBadBPP,
     ogSourceOutOfBounds,
     ogDestOutOfBounds,
     ogFileNotFound,
     ogFileReadError,
     ogFileWriteError,
     ogNoLFB,
     ogNoCloning,
     ogNoAliasing,
     ogNoModeSupport,
     ogBadWindowHandle,
     ogSetCooperativeLevelFail,
     ogSurfaceCreationFail,
     ogGetAttachedSurfaceFail,
     ogSurfaceLockFail
    );
See Also:


Previous: 4.51.1.23. ogDataState type To the Table of Contents Next: 4.51.1.25. ogModeInfo type
4.51.1.23. ogDataState type Table of Contents 4.51.1.25. ogModeInfo type

- 4.51.1.24. -