Skip to content

CheckOSError (platform)

Check for OS error and raise exception.

Declaration

Source position: osutilsh.inc line 25

procedure CheckOSError(LastError: Integer);

Description

CheckOSError checks if LastError is non-zero and calls RaiseLastOSError if this is the case.

See also

Name Description
RaiseLastOSError Raise an exception with the last Operating System error code.