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

HttpObjectIsInError

 
 

Library: HTTP support (OMHTTP)
Include: omhttp.xin
Return type: Switch

Returns: Returns an active switch value if an error report is available.


Declaration

define switch function HttpObjectIsInError
   read-only stream HttpObject

Argument definitions

HttpObject
is an HTTP request or HTTP response object (input argument).


Purpose

Use HttpObjectIsInError to determine if an error was encountered during the last function called with the specified HTTP object. It can occur in either a client or a server program.

Requirements

You must include the following line at the beginning of your OmniMark program:

  include "omhttp.xin"

Example


  ; HttpObjectIsInError
  include "omhttp.xin"
  
  process
  
     local HttpRequest my-Request
     local HttpResponse my-Response
  
     output "HTTP Error Detected"
        when HttpObjectIsInError my-Request or HttpObjectIsInError my-Response

    Related Topics
 
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.