Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

SoapException – PB Docs 2018 – PowerBuilder Library

SoapException – PB Docs 2018

SoapException

Description

The SoapException class is a PBNI class that inherits from the
PowerBuilder RuntimeError class. When an exception occurs in a Web service
method call, it is converted into a SoapException and thrown. The methods
of the classes in PBSoapClient180.pbx and PBWSClient180.pbx can also throw
SoapException.

Properties

Exception property

Data type

Description

Text

String

Contains the text of the error message

Methods

The following table defines methods inherited by a SoapException
object from the RuntimeError class.

Exception method

Data type returned

Description

GetMessage

String

Returns the error message from objects of type
RuntimeError

SetMessage

Sets an error message for an object of type
RuntimeError

Usage

The following example demonstrates how to use the SoapException
class. The ServiceProxy fails to be invoked and returns the error message.
The code has three catch clauses: for SoapException, PBXRuntimeError, and
RuntimeError. PBXRuntimeError is an exception class that inherits from
RuntimeError and is thrown when a PowerBuilder extension raises an error
that is not caught by the extension.

See also

GetMessage in the section called “GetMessage” in PowerScript Reference

RuntimeError object in the section called “RuntimeError object” in Objects and Controls

SetMessage in the section called “SetMessage” in PowerScript Reference


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x