If a problem occurs, Hibernate will throw an exception.
如果出现任何问题,Hibernate将会抛出异常。
No. 2: Throw an exception when needed constructor is missing.
第2种方法:当缺少所需构造函数时,抛出异常。
And yes, you throw an exception by writing throw new MyBadException (...).
而且一样的,你可以通过写thrownew My BadException(…)来抛出异常。
More support for testing whether code does or doesn't throw an exception.
为测试提供了更多的支持,无论代码是否抛出异常。
Some problems, like no response form the server are fatal and throw an exception.
一些问题,像服务器端没有相应非常致命,并抛出异常。
The basic program in Listing 1 contains three methods that can all throw an exception.
清单1中的基本程序包含三个方法,这三个方法都可抛出异常。
The second is that the code calls a method that can throw an exception without handling it.
第二,代码调用一个可能抛出异常的方法,但没有处理该异常。
(Otherwise, Derby would throw an exception when it tried to create a table that already existed).
(否则,Derby将在尝试创建一张已经存在的表时抛出异常)。
WCF Clients cannot be used inside a Using block because they may unexpectedly throw an exception.
WCF客户端不能用在Using语句块中,因为它可能会抛出不可预知的异常。
For instance, Linda stated that a stack should throw an exception if a user attempted to place null onto it.
例如,Linda说,如果用户试图将null放到栈上,那么栈应该抛出一个异常。
So this API is to invoke a service where that does not have a return value but that could throw an exception.
因此,此api用于调用并不返回值但可能引发异常的服务。
Unless you change this property, a command that runs for over 30 seconds will time out and throw an exception.
除非更改此属性,否则运行30秒后,命令就会超时,并且将抛出一个异常。
Note, however, that method remove is not supported and will throw an exception to that effect if invoked.
但是请注意,不支持remove方法,如果调用该方法会抛出异常。
If the string can't be empty or must be in a specific format, check for the format and throw an exception.
如果字符串不能为空或者必须为特定格式,请检查格式并抛出异常。
Of course, those functions don't have any implementations yet, so calling them will just throw an exception.
当然,那些函数也没有任何实现,所以调用它们将只抛出异常。
Since Kid USES XML, all the templates must be well formed, or they will throw an exception during rendering.
由于Kid使用了XML,因此所有的模板都必须很好地进行格式化,否则在呈现时就会抛出异常。
This response should throw an exception because the temperature value is not a float type — it is actually a string.
这个响应会抛出一个异常,因为温度的值不是浮点类型—它实际上是一个字符串。
There were two options for what should happen when the retrieval timeout occurs: return null or throw an exception.
对于在检索超时发生时应当发生的事情,有两个选择:返回null或者引发异常。
Throw an exception whenever a run-time instantiation of the generic class does not include a needed constructor.
只要泛型类的运行时实例化没有包括所需的构造函数,就抛出异常。
As Linda stated, the behavior is simple: If someone calls push with a null value, the stack should throw an exception.
正如Linda所说,行为很简单:如果有人对null值调用push,那么栈应该抛出一个异常。
If you separate the operations that can throw an exception from those that can't, the problem becomes more tractable.
如果将可能抛出异常的操作与不会抛出异常的操作分开,那么问题就更容易处理了。
This service code is generated in the form of a skeleton implementation, with service methods that just throw an exception.
此服务代码以框架实现的形式生成,其中包含直接引发异常的服务方法。
Ensure that your NL product, once released, will not throw an exception due to missing keywords from the translated files.
确保您的本地语言产品一旦发布将不会由于已翻译文件遗漏关键字而抛出异常。
When you publish it to outside clients, you want to check the arguments and throw an exception if the arguments are invalid.
当你将它向外界的客户公布时,你要检查实参并且如果实参无效,你要给出一个例外。
If the server script does not check the data, either the database will throw an exception or the database will be compromised.
如果服务器脚本不检查数据,要么数据库抛出异常,要么数据库安全会受到影响。
If you attempt to assign an SDO of a different SDO type (another author, perhaps) or a primitive, SDO would throw an exception.
若试图指派一个不同sdo类型的SDO(比如说,另外一名作者)或原生数据类型,SDO将抛出异常。
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将只在运行时出现一个异常。
One thing worth knowing: When you run a program with this UI threading issue from within Visual Studio, it will always throw an exception.
有一件事需要清楚——当你在VisualStudio中运行一个带ui线程的程序时,总是会抛出一个异常。
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.
它具有属性,但如果尝试设置其不包含的属性,它不会引发异常,这一点与普通数据对象不同。
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()函数将抛出一个异常。
应用推荐