use SysError;


import SysError;

This module helps handle system errors.

This module defines the type syserr, which can encode an error code or error message and be returned from routines generating an error. Additional routines are provided to print a useful error message from a syserr.

The IO module uses these routines in a way that supports error inspection and rapid prototyping. A OS.SystemError is thrown when an error occurs.


The ‘SysError’ module is deprecated. Please use ‘OS’ instead