Skip to main content

SystemErrorCode

Type

expression

Summary

The system error code.

Syntax

the system error code

Description

Evaluates to the current platform-dependent system error code.

  • On Windows, returns the result of GetLastError().

  • On other platforms, returns the current value of errno.

*Note
  • The system error code may be modified or cleared by any syntax that interacts with the operating system (e.g. by performing input or output). You should check the system error code as soon as possible after any platform operation that might fail.
Thank you for your feedback!

Was this page helpful?