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 126 – PowerBuilder Library

SoapException – PB Docs 126

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 PBSoapClient126.pbx and PBWSClient126.pbx can
also throw SoapException.

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 PowerScript Reference

  • RuntimeError object in Objects and Controls

  • SetMessage in the 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