Sign in Join
FPDoc Onlineexperiment

StrError function

In unit errors

Convert an error code to a string.

Declaration

pascal
function StrError(err: cint): string

Arguments

err

Error code to return string from.

Function result

Error message corresponding to error code Err.

Description

StrError will convert the error code err to a string.

Errors

If the error code is unknown or out of bounds, an 'Unknown error (err)' string will be returned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.