Modifies the error severity of a specified server error for the subsequent web function call. This can be done for a specified amount of server errors or for all.
WebAPI.bdh
WebIgnoreServerError( in nStatusCode : number, in nSeverity : number optional := SEVERITY_SUCCESS, in nCount : number optional );
none
Parameter | Description |
---|---|
nStatusCode | Server status code to ignore or change the severity for (e.g. 404). |
nSeverity |
Optional: Severity of the error that is raised if the verification fails. Can be one of the following values:
|
nCount | The specified error can occur nCount times before an error with the default severity is raised. If this parameter is omitted the specified severity is valid for all server responses |
dcltrans transaction TWeb begin WebIgnoreServerError(404); WebUrl("http://standardhost/", 0.0); WebIgnoreServerError(404, SEVERITY_SUCCESS, 3); WebIgnoreServerError(500, SEVERITY_WARNING); WebPageUrl("http://standardhost/"); end TWeb;