std-print-errno


Synopsis

(std-print-errno [errno])

Description

Prints a descriptive message for the value of the numeric errno argument or the current value of the internal variable *STD-ERRNO* which is set by any external stdlib ADS functions after failing.

This is only useful if you catch an error by using VL-CATCH-ALL-APPLY (AutoCAD 2000 only), check for the error code by looking at the value of *STD-ERRNO* and print a error warning.

Examples

;;; This may call an ADS function and fail there.

;;; vl-catch-all-apply protects from errors

(setq drives (vl-catch-all-apply 'std-get-drive-list))
(if (vl-catch-all-error-p drives)
  (progn
    (std-print-errno)
    (setq drives '("A" "C" "D" "E"))
    ))

Arguments

errno: optional. nil or a integer number

Return Value

undefined

Side Effects

Prints a message to the console.

Module

(std-require "STDLIB-ADS")