WSCI can raise an exception based on a fault message from WSDL, a message content, or an event (for example, Timeout event).
WSCI能抛出一些异常,它们来自于WSDL、信息内容或事件(例如,超时事件)的错误信息。
If the document_root doesn't have any child nodes, for example, config_node will be set to undef, and the third line of the example will raise an error.
例如,如果document_root没有任何子节点,则将config_node设置成undef,并且该示例的第三行将产生一个错误。
In the contrived example shown in Listing 5, I validate the passed argument, and if it is invalid, I raise an exception.
在清单5所示设计示例中,我验证所传递的参数,如果它是无效的,我就提出异常。
应用推荐