linda: the stack should throw an exception because null isn「t a valid value to push().
栈应该抛出一个异常,因为null不是一个有效的可push() 的值。
if a query uses a combination of columns that are not indexed, gae will only throw an exception at run time when the query is executed.
如果查询使用没有进行索引的列的组合,那么当执行查询时,gae将只在运行时出现一个异常。
the checkrequest() function will throw an exception if the xmlhttprequest object has not been created or if the request has already been sent.
如果还没有创建xmlhttprequest对象,或者已经发送了请求,那么checkrequest()函数将抛出一个异常。
(otherwise, derby would throw an exception when it tried to create a table that already existed).
(否则,derby将在尝试创建一张已经存在的表时抛出异常)。
in the case that wildcards are not supported by your repository, you will throw an exception when you encounter a wildcard with a like operator.
如果存储库不支持通配符,那么在遇到通配符和like操作符时应该抛出异常。
and yes, you throw an exception by writing throw new mybadexception(…).
而且一样的,你可以通过写thrownewmybadexception(...) 来抛出异常。
if the document is not parsed and the objects made persistent within 30 seconds, then the server will throw an exception and the objects will not be created.
如果文档没有被解析且对象在30秒内进行持久化,则服务器将抛出一个异常且对象将不会创建。
technically, i could just implement pop() to only throw an exception at this point, regardless of calling order.
从技术上讲,在这里我可以将pop()实现为无论调用顺序如何,都只抛出一个异常。
when you publish it to outside clients, you want to check the arguments and throw an exception if the arguments are invalid.
当你将它向外界的客户公布时,你要检查实参并且如果实参无效,你要给出一个例外。
and the code that reads the file should check to make sure that the version number is less than or equal to its current version and throw an exception if it」s not.
而读取文件的代码应该检查这个版本号,以保证版本号小于或者等于当前版本,否则就会抛出一个异常。
another way of handling this problem would be to throw an exception whenever a run-time instantiation of the generic class does not include a needed constructor.
处理该问题的另一种方法是:只要泛型类的运行时实例化没有包括所需构造函数,就抛出异常。
also, it's not ideal to simply throw an exception when no matching constructor exists.
而且,当不存在任何匹配的构造函数时就抛出异常也不太理想。
it has properties, but if you try to set a property of it which is does not contain, it will not throw an exception like normal data objects.
它具有属性,但如果尝试设置其不包含的属性,它不会引发异常,这一点与普通数据对象不同。
mq methods will throw an exception whenever the completion code or reason code resulting from an mq call is not zero.
每当mq调用产生的完成或原因代码不为零,mq方法就会引发异常。