如果失败,会抛出一个异常并予以处理。
如果抛出一个异常,连接和流就会被关闭。
If an exception is thrown, the connection and stream are closed.
使用此函数时将抛出一个异常并显示给用户。
When using this function an exception will be thrown and displayed to the user.
当断言失败时,就会抛出一个异常。
如果在字典中不存在该键,就抛出一个异常。
If the key doesn't exist in the dictionary, an exception is thrown.
因此,本机返回的结果会造成立即抛出一个异常。
The return from the native will therefore cause an exception to be thrown immediately.
该操作将抛出一个异常。
这是未定义,但实际上,这里做的就是抛出一个异常。
So it's not defined. But in fact, what this did was it threw an exception.
如果数目大于或等于3,它将抛出一个异常。
If the number is more than or equal to three, it throws an exception.
会抛出一个异常,表示您正在试图对一个只读连接执行更新。
The correct answer here is A. An exception will be thrown, indicating that you are trying to perform an update operation on a read-only connection.
如果这个列表是null,require会抛出一个异常。
在清单3中的代码中,在方法结束时总是抛出一个异常,所以强制回滚。
In the code in Listing 3, there's an exception that is always thrown at the end of the method, thereby forcing a rollback.
在这种情况下,第二个映射访问可能会返回null,并抛出一个异常。
In that case, the second map access would return null and an exception would be thrown.
这个响应会抛出一个异常,因为温度的值不是浮点类型—它实际上是一个字符串。
This response should throw an exception because the temperature value is not a float type — it is actually a string.
如果用户名和密码匹配预期值,那么返回即可;否则,将抛出一个异常表示出错。
If the username and password match the expected values, this just returns; otherwise, it throws an exception to indicate the error.
现在我可以为pop方法编写行为,即确保当栈在逻辑上为空时,抛出一个异常。
Now I can code the behavior for the pop method, which ensures that if the stack is logically empty, an exception will be thrown.
例如,Linda说,如果用户试图将null放到栈上,那么栈应该抛出一个异常。
For instance, Linda stated that a stack should throw an exception if a user attempted to place null onto it.
如果处理过程中出现错误,将抛出一个异常,这个异常也被格式化为json。
If there is an error in the processing, an exception is thrown, which is then also formatted as JSON.
在调试编译时它会抛出一个异常,但是在发布编译时它可能无警告地泄漏内存。
For debug builds it throws an exception, but for release builds it may silently leak memory.
除非更改此属性,否则运行30秒后,命令就会超时,并且将抛出一个异常。
Unless you change this property, a command that runs for over 30 seconds will time out and throw an exception.
CXF服务器可以正确处理这种情况,但是在处理响应时客户端会抛出一个异常。
The CXF server handled this correctly, but the client threw an exception while processing the response.
每当实际代码碰到任何类型的错误,它就抛出一个异常,然后该异常就进入调用栈。
Whenever the actual code encounters any type of error, it throws an exception, which then goes to the call stack.
如果数据库不存在,将抛出一个异常,并且DBManager构造函数自己将创建数据库。
If the database doesn't exist, an exception is thrown, and the DBManager constructor creates the database itself.
另外,如前面的例子所示,在采用这种方式时对于键不能使用数字,否则会导致抛出一个异常。
In addition, you can't use Numbers for the keys in this approach, as shown in the previous example. Doing so causes an exception to be thrown.
如果文档没有被解析且对象在30秒内进行持久化,则服务器将抛出一个异常且对象将不会创建。
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.
在这种情况下,不是抛出一个异常,而是没有发现“test ”值;实际弹出的是null。
In this case, rather than an exception being thrown, the "test" value isn't being found; null is being popped.
如果内容不受支持,那么代码抛出一个异常,此异常由try - catch块捕捉到。
If the content isn't supported, the code throws an exception, which is caught by the try-catch block.
Device必须是调用该方法的一个ManagedSet成员,否则将抛出一个异常。
The Device must be a member of a ManagedSet to call this method, otherwise a exception is thrown.
正如Linda所说,行为很简单:如果有人对null值调用push,那么栈应该抛出一个异常。
As Linda stated, the behavior is simple: If someone calls push with a null value, the stack should throw an exception.
Throwexception:如果突然出现一个错误,抛出一个异常,操作不能执行。
Throw exception: If an error is encountered, an exception is thrown and the operation is not performed.
应用推荐