|
|
|
|
|
- Retrieving information about the exception
ExceptionThrow (Function) In french: ExceptionDéclenche Artificially triggers the security mechanism of WLanguage by throwing an exception. Then, this exception can be processed by an exception code written for this purpose. The exceptions are thrown in the WLanguage code only (and not in the framework). Used in a web service, this function allows you to: - stop the current process,
- return an error to the external application that uses the web service via the standard SOAP protocol.
In the XML code returned by the web service, the error message is returned in the "faultstring" tag. The error number is not returned in a specific tag, it is contained in the text of the full error details found in the "detail" tag. Warning: When using this web service in a WINDEV, WEBDEV or WINDEV Mobile application, the error must be retrieved using the ErrorInfo function and not the ExceptionInfo function.
Syntax
ExceptionThrow(<Error number> [, <Message>])
<Error number>: Integer or constant Number of the error to throw. This number (included between 1 and 1000) is defined by the developer. <Message>: Optional character string Message associated with the error. Remarks Retrieving information about the exception The information about the exception is retrieved by ExceptionInfo: - ExceptionInfo(errCode) is used to retrieve the number of the exception.
- ExceptionInfo(errMessage) is used to retrieve the message.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|