if the criterion is not met you can raise an exception using the throw node.
如果不满足条件,您可以使用throw节点引发一个异常。
unlike dictionaries, counters don「t raise an exception if you access an element that doesn」t appear. instead, they return 0
与字典不同的是,当你读取一个不存在的元素的时候,计数器并不会抛出异常。相反的,这时候程序会返回0。
wsci can raise an exception based on a fault message from wsdl, a message content, or an event (for example, timeout event).
wsci能抛出一些异常,它们来自于wsdl 、信息内容或事件(例如,超时事件)的错误信息。
presumably such a type_check() decorator would raise an exception or take some corrective action if the types are not as expected.
如果这些类型并非如我们预期的一样,那么这种 type_check()decorator就可能会触发一个异常,或者采取一些纠正操作。
raise an exception after the model is saved if you can find 2 or more instances of the same title.
引发一个异常的模型保存后,如果你能找到的同名2个或多个实例。
the most common use of exception handling is breaking out of a function to raise an exception to a caller (which may be the caller or a caller higher up the stack).
异常处理的最常见用法是中断一个函数,将异常提交给调用程序(可能是该调用程序,或者是堆栈中上级调用程序)。