JCL Help:EJclWin32Error

From Project JEDI Wiki
Jump to navigationJump to search

Class Hierarchy

EJclError
|
EJclWin32Error
|
EJclCreateProcessError
|
EJclCriticalSectionError
|
EJclDispatcherObjectError
|
EJclEventError
|
EJclFileMappingError
|
EJclFileMappingViewError
|
EJclMutexError
|
EJclNtfsError
|
EJclSemaphoreError
|
EJclTempFileStreamError
|
EJclWaitableTimerError
|
EJclWin32HandleObjectError


Summary

Base class for exceptions raised in response to Win32 errors.


Pascal

 public EJclWin32Error = class(EJclError);


Description

The EJclWin32Error exception class is used as the base class for exceptions that are raised in response to the failure of a Win32 API function that sets LastError. The EJclWin32Error constructors automatically call GetLastError, the result of which is made available to the programmer through the LastError property. Additionally it appends a human-readable string to the passed in exception Msg corresponding to the last error. This message is separated from the passed in Msg by a carriage return and is made available through the LastErrorMsg property.


About

Unit

JclWin32


Navigation

Donator

Marcel van Brakel


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page