腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(7078)
视频
沙龙
1
回答
为什么对空原子类调用方法不会产生异常?
java
、
concurrency
、
atomic
import java.util.concurrent.*; private AtomicInteger count; System.out.print(count.incrementAndGet() + "here"); //does not print publ
浏览 2
提问于2018-10-22
得票数 2
回答已采纳
1
回答
现在关闭
ExecutionException
java
、
java.util.concurrent
try { f.get(); } catch (
ExecutionException
浏览 4
提问于2016-10-27
得票数 2
回答已采纳
1
回答
使用ExecutorService和可调用程序无法捕获特定的异常?
java
、
exception
、
executorservice
、
callable
但是,可调用的唯一例外似乎是
ExecutionException
。e.printStackTrace(); } catch (
ExecutionException
exception"); }在上面的代码中,我想捕获NumberFormatException,但是除了
ExecutionExcept
浏览 1
提问于2016-04-17
得票数 1
回答已采纳
2
回答
截击
ExecutionException
android
、
android-volley
30000, TimeUnit.MILLISECONDS); L.m(e + ""); } catch (
ExecutionException
浏览 1
提问于2015-05-17
得票数 0
回答已采纳
1
回答
番石榴CacheLoader抛出并捕获自定义异常
java
、
guava
、
google-guava-cache
当我试图使用这个缓存实例获取对象时,我可以将异常捕获为
ExecutionException
。try {} catch (
ExecutionException
e){ 但是,我想专门捕获和处理我定义的CacheLoader抛出的异常(即InternalServerException我不确定是否检查
ExecutionException
实例是否是我自己的异常之一,因为load()方法的签名实际上抛出了Exception而不是
ExecutionException
。
浏览 4
提问于2017-02-08
得票数 7
回答已采纳
1
回答
Task API -如何将异步调用重构为同步调用,但仍能捕获所需的异常(ApiException)
android
、
google-play-services
、
google-signin
ApiException in Tasks.await} catch (
ExecutionException
浏览 2
提问于2018-05-23
得票数 2
1
回答
Thymeleaf:在控制器中捕获异常
java
、
spring-boot
、
spring-mvc
、
thymeleaf
我在控制器中有下面的方法,它里面有一个错误。@RequestMapping("/popup") public String popup() { service.generate(new ExistOTPValidQuery().requestNumber("test"), Boolean.class).get();
浏览 4
提问于2022-08-04
得票数 1
1
回答
要么重新中断此方法,要么在声纳中重新抛出"InterruptedException问题“。
java
、
exception
、
try-catch
、
throws
、
interrupted-exception
try{ }catch(InterruptedException|
ExecutionException
e) throwfailed" , e) 同样地,在我的方法中,我把抛出的InterruptedException,
ExecutionException
浏览 0
提问于2019-01-30
得票数 35
2
回答
在上层方法中的最深层调用中引发了捕获异常
java
. <--- throws IOException or
ExecutionException
or InterruptedException } gbr(); // .... <--- throws IOException or
ExecutionException
浏览 0
提问于2014-08-10
得票数 1
1
回答
云数据业务中的星火连接策略
google-cloud-data-fusion
、
cdap
:java.util.concurrent.
ExecutionException
:org.apache.spark.SparkException:java.util.concurrent.
ExecutionException
:java.util.concurrent.
ExecutionException
:org.apache.spark.SparkException:java.util.concurrent.
ExecutionException
:java.util.concurrent.
ExecutionExcep
浏览 4
提问于2020-01-10
得票数 1
2
回答
AssertJ断言抛出的异常或结果
java
、
junit
、
future
、
assertions
、
assertj
Resp> future : futureList) {futureResponse.get()).isInstanceOf(
ExecutionException
.class
浏览 2
提问于2018-01-31
得票数 0
回答已采纳
1
回答
单元测试异步操作
java
、
android
、
unit-testing
、
concurrency
、
exception-handling
callback.onDeleteSuccess(future.get()); } catch (InterruptedException |
ExecutionException
浏览 3
提问于2017-10-30
得票数 1
回答已采纳
2
回答
抛出新异常并立即捕获,以避免代码重复。有可能吗?
java
、
exception
、
exception-handling
、
repeat
this.processAndStoreData(returnedPoolData, i, calledApis, id, false); } catch (
ExecutionException
因为一旦我删除
ExecutionException
,throw new行就不会在红色下划线.
浏览 2
提问于2018-05-19
得票数 1
回答已采纳
1
回答
我可以忽略org.apache.kafka.common.errors.NotLeaderForPartitionExceptions?吗
exception-handling
、
apache-kafka
、
kafka-producer-api
InterruptedException(): " + sourceTableName + " " + interruptedException.getMessage());
executionException
.printStackTrace(); throw new RuntimeException("sendKafkaMessage(): Failed due to <e
浏览 1
提问于2016-04-28
得票数 10
回答已采纳
3
回答
处理
ExecutionException
的原因
java
、
swingworker
、
executionexception
我想区分我的工作者类(InvalidInputException和MiscalculationException)的异常,但是
ExecutionException
包装器使事情变得复杂。try{ worker.get(); //Not relevant } catch(
ExecutionException
浏览 14
提问于2013-02-06
得票数 7
回答已采纳
1
回答
使用EasyMock或Mockito模拟空方法的试捕获块和捕获异常
java
、
junit
、
mocking
、
mockito
、
easymock
retryer.call(updateCache); // this is also a void method, so no return here public void test_UpdateCacheFOServiceRunException() throwsWarehouseCacheFOServiceUpdateTask.class); mockC
浏览 3
提问于2020-04-27
得票数 0
2
回答
可调用和未来返回异常
java
、
exception
、
concurrency
、
future
、
callable
e.printStackTrace(); } catch (
ExecutionException
Auto-generated catch block }其中
ExecutionException
我的调用代码正在捕获ABCException,这是运行时异常,所以如果
Execution
浏览 1
提问于2014-05-22
得票数 0
回答已采纳
3
回答
如何处理java.util.concurrent.
ExecutionException
异常?
java
、
error-handling
、
executionexception
我的代码中有一部分抛出了java.util.concurrent.
ExecutionException
异常。我该怎么处理呢?我可以使用throws子句吗?我对java还是个新手。
浏览 5
提问于2012-07-26
得票数 7
回答已采纳
1
回答
在stream API中如何处理InterruptedException和
ExecutionException
java
return callable.call(); } catch (InterruptedException |
ExecutionException
浏览 2
提问于2019-08-02
得票数 2
1
回答
挥棒的工人不起作用
java
、
swingworker
regstatus.setText("registration status: " + status); } catch (
ExecutionException
reqstatus.setText("request status: " + status); } catch (
ExecutionException
浏览 0
提问于2015-06-14
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
NO.64 分头行动:并行Search模式
2行代码,让接口性能提升10倍
java安全编码指南之:ThreadPool的使用
生产环境踩坑系列::Hive on Spark的connection timeout 问题
Java 类库中的瑞士军刀:Google Guava 缓存
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券