腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
6
回答
SQLServer
try
catch
性能
sql-server
、
try-catch
有没有人发现在sql server2008中使用BEGIN
TRY
..END
TRY
与旧的IF @@ERROR <> 0相比有任何
性能
上的提升/折衷?只是好奇地想知道是否有
性能
损失。
浏览 0
提问于2009-02-22
得票数 11
回答已采纳
6
回答
try
/
catch
块的
性能
成本
c#
、
.net
、
asp.net
可能重复: 是否最好尽可能多地使用
try
catch
块?
浏览 5
提问于2010-08-13
得票数 12
回答已采纳
4
回答
try
catch
子句会影响
性能
吗?
.net
如果
try
块中没有抛出异常,
try
/
catch
会影响
性能
吗?
try
/
catch
/finally怎么样?
浏览 5
提问于2010-12-21
得票数 8
回答已采纳
1
回答
Javascript检查
性能
(比较if和
try
/
catch
)
javascript
、
performance
、
null
、
try-catch
、
undefined
这是更好的1或2,如果只比较
性能
,这种方法被多次调用。根据运行时的不同, foo 可能为空,但foo可能有值,但 bar 可能为空等。return foo.bar.innerfoo.innerbar.x; return 0;function getInnerValue() { return foo.bar.innerfoo.innerbar.x;
catch
(e) { } }
浏览 3
提问于2020-06-24
得票数 1
回答已采纳
3
回答
解析
性能
(If、TryParse、
Try
-
Catch
)
c#
、
parsing
、
text
例如,对于解析整数,可以期望什么样的
性能
。我想知道是否有人知道关于这方面的任何好的统计数据。我正在寻找一些真实的数字从有人谁测试了这一点。{}{}
浏览 0
提问于2008-09-29
得票数 33
回答已采纳
4
回答
TRY
/
CATCH
_ALL与
try
/
catch
c++
、
exception-handling
我使用c++已经有一段时间了,我对普通的
try
/
catch
很熟悉。然而,我现在发现自己在Windows上,用VisualStudio编写COM开发代码。代码的几个部分使用如下内容: ... do stuff ... issue a warningEND_
CATCH
_ALL;我试过用谷歌搜索这个,但是"
浏览 0
提问于2010-04-15
得票数 8
回答已采纳
9
回答
在php中
try
-
catch
的
性能
php
、
performance
、
exception-handling
、
try-catch
在php 5中使用
try
-
catch
语句时,需要考虑哪些
性能
问题? 我以前在网上读过一些关于这个主题的古老的和似乎相互矛盾的信息。我目前使用的很多框架都是在php 4上创建的,缺乏php 5的许多细节,所以我自己在php中使用
try
-catchs的经验并不多。
浏览 2
提问于2008-09-19
得票数 65
回答已采纳
3
回答
If/Else,
Try
/
Catch
For Each或
Try
/
Catch
Over For If?
exception-handling
、
try-catch
System.Object, e As System.EventArgs) Handles btnDoSomething.Click
Try
Catch
ex As Exception Else End
浏览 1
提问于2013-04-19
得票数 0
回答已采纳
2
回答
Try
/
catch
块中断异步
JS
代码
javascript
、
node.js
、
async-await
我想要编写类似下面这样的代码 const x = await doThis(); console.log(e);
try
{cons y = await doThat(x); console.log(e); return somethingElse(x,y); 但是UnhandledPromiseRejectionWarning: Unhandled promise rejection (reje
浏览 2
提问于2018-01-31
得票数 0
9
回答
“抛出”或“
try
...
catch
”会影响
性能
吗?
c#
、
exception
现在,我想更改抛出的代码,使方法返回false并这样处理它,但我的问题是:抛出或尝试.捕获会妨碍
性能
.?我的意思是,这是否可以接受:{ {
catch
(Exception
浏览 10
提问于2010-04-26
得票数 2
0
回答
catch
块中的
js
嵌套
try
javascript
、
asynchronous
、
promise
、
try-catch
我是这样想的: var key, scope; resolve(key)
catch
(err){); }
catch
(err) { reject
浏览 10
提问于2017-06-06
得票数 0
回答已采纳
1
回答
如何使用
catch
try
catch
?
c++
、
try-catch
我的教授给了我们一个
try
catch
块,他希望我们从现在开始在所有代码中使用它。在阅读了它之后,我仍然对如何在我的程序中实现它感到有点困惑。return 0;
catch
(exception& e) { keep_window_open();}
catch</
浏览 0
提问于2015-03-06
得票数 1
2
回答
Try
-
Catch
- End
Try
用法
vb.net
、
try-catch
我是不是应该使用
Try
Catch
End
try
或者我应该使用
Try
Catch
:End
Try
这两个有什么不同?
浏览 27
提问于2019-02-09
得票数 2
回答已采纳
1
回答
try
/
catch
性能
java中的不可抛代码
java
、
exception-handling
由于不抛出
try
块中的异常的方法,对下面的代码会产生任何负面的
性能
影响吗?String user; user = SomeHelper.getUserName(); //Does not throw anything explicitlySomeOtherHelper.methodThatCanBlow(User.getCredentials(context)); //This will throw exception }
catch
anything exp
浏览 2
提问于2014-05-01
得票数 1
回答已采纳
1
回答
Try
...
catch
对.
catch
javascript
、
node.js
、
typescript
export const service = {
try
{ async index(): Promise<User[]> { const result = await service.getAllconst resolver = { users: (): Promise<Us
浏览 4
提问于2020-05-28
得票数 4
回答已采纳
1
回答
Try
/
Catch
语法
python
a = 10c=a/b # raise Exception('The error
浏览 14
提问于2018-02-04
得票数 0
回答已采纳
3
回答
全局
try
catch
c#
、
silverlight
、
try-catch
、
global
我知道
try
catch
已经讨论了很多,但我还没有找到解决我的问题的方法。public void Method1()
try
} { Messa
浏览 6
提问于2012-03-30
得票数 10
回答已采纳
1
回答
Matlab
try
/
catch
matlab
G=[one, aux3(:,ii), aux3(:,ii) - aux2(:,ii),aux3(:,ii+1) - aux2(:,ii+1)];
catch
ME betasPu(:,(ii+1)/2)=[Inf,Inf,Inf,Inf];
浏览 0
提问于2012-11-12
得票数 3
回答已采纳
2
回答
总结
try
/
catch
c#
、
try-catch
try
ReadFile();
catch
Message.Show("Error reading File");
try
ReadData();}{ }{ }{ Message.Show("Error va
浏览 0
提问于2015-11-12
得票数 0
3
回答
Try
Catch
块
vb.net
、
exception-handling
我有以下代码 'Some code that causes exception 'Handle Section - 1 'Handle section - 2 'Handle section - 3FinallyEnd
Try
浏览 7
提问于2008-12-12
得票数 1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
前端、Node.js、try……catch、Deno、Web API
Kotlin基础九‘try’,‘catch’,‘finally
Java的try-catch-finally问题分析
try{}catch居然可以隐藏?让我们用函数式接口来实现吧
JS高性能优化
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券