Progress
on the Web
Handling Errors
If the application uses URLs in the PROPATH, the application is responsible for handling all errors, which might involve URLs, connections, and authentication.
URL Specification Errors
If the PROPATH contains an ill-formed URL (for example, one with the percent symbol (%), which is not allowed), the following processing occurs:
Connection Errors
If the PROPATH contains a correctly-formed URL but the connection to the Web server fails, the following processing occurs:
Authentication Errors
If an application uses SEARCH() or LOAD–IMAGE(), the PROPATH contains a URL, and authentication on a Web server fails, the following processing occurs:
- If the URL is not a fully-qualified path, SEARCH() and LOAD-IMAGE() do not raise an error and searching continues with the next entry in the PROPATH.
- If the URL is a fully-qualified path:
- The SEARCH() function does not raise an error but returns the unknown value (?).
- The LOAD–IMAGE(), LOAD–IMAGE–DOWN(), LOAD–IMAGE–UP(), LOAD–IMAGE–INSENSITIVE(), and LOAD–ICON() methods raise error 9368, where server-name is the host name of the Web server:
You can trap this error, request a user ID and password, and try to download image again, as in the following example:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |