4D v14.3

WA GET LAST URL ERROR

Home

 
4D v14.3
WA GET LAST URL ERROR

WA GET LAST URL ERROR 


 

WA GET LAST URL ERROR ( {* ;} object ; path ; description ; errorCode ) 
Parameter Type   Description
Operator in If specified, object is an object name (string) If omitted, object is a variable
object  Form object in Object name (if * is specified) or Variable (if * is omitted)
path  String in URL at origin of error
description  String in Description of error (Mac OS)
errorCode  Longint in Error code

The WA GET LAST URL ERROR command recovers several items of information about the last error that occurred in the Web area designated by the * and object parameters.

This information is returned in three variables:

  • url: URL causing error.
  • description (Mac OS only): A text describing the error (if available). If it is not possible to associate a text with the error, an empty string is returned. Under Windows, this parameter is always returned empty.
  • errorCode: The error code.
    • If the code is >=400, it is an error related to the HTTP protocol. For more information about this type of error, refer to the following address:
      http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
    • Otherwise, it is an error returned by the WebKit (Mac OS) or ActiveX (Windows).

It is recommended to call this command within the framework of the On URL Loading Error form event to find out the cause of the error that just occurred.

 
PROPERTIES 

Product: 4D
Theme: Web Area
Number: 1034

 
HISTORY 

Created: 4D v11 SQL Release 2

 
SEE ALSO 

Form event

 
ARTICLE USAGE

4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)