|
@@ -21,14 +21,20 @@ public class RemotePmFactory implements FallbackFactory<RemotePmService>
|
|
|
@Override
|
|
|
public RemotePmService create(Throwable throwable)
|
|
|
{
|
|
|
- log.error("用户服务调用失败:{}", throwable.getMessage());
|
|
|
return new RemotePmService()
|
|
|
{
|
|
|
@Override
|
|
|
public void executeTimedSending() {
|
|
|
+ log.error("工作报告定时发送异常:{}", throwable.getMessage());
|
|
|
throw new FeignBadRequestException(500,"工作报告定时发送异常"+throwable.getMessage());
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void reportSubmissionReminder() {
|
|
|
+ log.error("工作报告提交提醒发送异常:{}", throwable.getMessage());
|
|
|
+ throw new FeignBadRequestException(500,"工作报告提交提醒发送异常"+throwable.getMessage());
|
|
|
+ }
|
|
|
+
|
|
|
};
|
|
|
}
|
|
|
}
|