swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
    Other Library Functions  
function  

get-exception-status

 
 

Library: I/O exception support (OMIOE legacy)
Include: omioe.xin
Return type: Integer

Returns: Returns a numeric value indicating the current status of the "io-exception" OMX component.


Declaration

define external integer function get-exception-status
         value io-exception ex


Purpose

This function allows you to retrieve the current status of the "io-exception" OMX component.

Argument:

Example:

  ; Declaring and using an "io-exception" object to capture the error status,
  ; if any, of reading from a UTF-16 encoded file.
  
  include "omioe.xin"
  process
     local io-exception e
     submit utf16-input-file "widetext.txt" exceptions-to e
     put #error "I/O exception on widetext.txt%n"
         when get-exception-status e != 0
     done

      Other Library Functions
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.