Programmer's Reference

Obtaining platform-specific error information

Platform-specific error information can be obtained from a CfsError instance by means of the following messages. These messages return nil if not supported by a particular platform or in the case of a synthetic error that is simulated for compatibility rather than being generated by the platform operating system itself.

platformErrno
An integer representing the native platform error code, if any

platformErrorCategory
An integer representing the native platform error category, if any

platformErrorLocation
An integer representing the native platform error location, if any

platformRecommendedAction
An integer representing the recommended action, if any, suggested by the platform operating system

Platform-specific error information is useful for debugging, and appears as four integers, separated by commas, between square brackets when a CfsError prints itself. If necessary, these methods can be used to trigger special platform-specific actions. However, this will of course result in nonportable code.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]