5 The MLWorks Motif Interface Library

5.5 Exceptions

The XSystemError exception is used when a C function which is called by one of the functions below fails. It is typically used in functions where the C version of the function returns a result status and the ML implementation of the function returns unit or a data value.

exception XSystemError of string

The ArgumentType exception is raised when a function is passed a resource name with an inappropriate resource value. See Section 5.6 for more details.

exception ArgumentType of argument_name * argument_value

The NotInitialized exception is raised if an event handling function is called before the X Window System has been initialized. The SubLoopTerminated exception is raised when doInput is called when the application has been exited (see Section 5.9).

exception NotInitialized

exception SubLoopTerminated


MLWorks Reference Manual (version 1.0) - 3 DEC 1996

Generated with Harlequin WebMaker