互联网服务

MB中数据库异常处理

大家都是怎么处理MB中数据库处理异常的呢??
例如我插入的时候出现了异常我们
是返回错误代码回去在后面处理
还是根据情况直接在mb里面处理好后返回错误信息回去呢?
还是有什么具体的方法?
参与9

8 同行回答

paulmin paulmin 软件开发工程师 hsbc software development
remember to attach all  InputExceptionList显示全部
remember to attach all  InputExceptionList 收起
互联网服务 · 2013-05-10
浏览377
paulmin paulmin 软件开发工程师 hsbc software development
Our practice is to throw exception to the failure terminal . the failure terminal goes to a error handling subflow. the subflow will produce a well-formatted XML with detail errors to a test.err MQ.Another error handle mainflow will retrieve the msg ...显示全部
Our practice is to throw exception to the failure terminal . the failure terminal goes to a error handling subflow. the subflow will produce a well-formatted XML with detail errors to a test.err MQ.
Another error handle mainflow will retrieve the msg from test.err MQ then insert into our error table. 收起
互联网服务 · 2013-05-10
浏览414
smart_wolf smart_wolf 研发工程师 德邦证券股份有限公司
数据库操作执行完,能拿到SQLSTATE、SQLNATIVEERROR的值,异常的时候也能获取到,错误信息拿到之后,看你的需求了,想怎么处理就怎么处理了。。显示全部
数据库操作执行完,能拿到SQLSTATE、SQLNATIVEERROR的值,异常的时候也能获取到,错误信息拿到之后,看你的需求了,想怎么处理就怎么处理了。。 收起
证券 · 2013-05-03
浏览374
lxstaring lxstaring 软件开发工程师 yajie of shanghai china
我用try catch节点通过尝试 然后得到ExceptionList然后拿到具体的异常然后处理?显示全部
我用try catch节点通过尝试 然后得到ExceptionList然后拿到具体的异常然后处理? 收起
互联网服务 · 2013-05-03
浏览394
wenzi5a321 wenzi5a321 软件架构设计师 上海派拉软件
我这边的做法是捕获异常,然后将异常保留到数据库中,供查看用显示全部
我这边的做法是捕获异常,然后将异常保留到数据库中,供查看用 收起
互联网服务 · 2013-05-03
浏览368
guolimin1118 guolimin1118 产品总监 上海派拉软件有限公司
需要分情况,如果是不影响业务的数据,我们应该转到另外一条消息流,这样可以避免主流出现异常,导致主流出现错误,如果是影响业务的话,最好把错误信息返回去,并记录到数据库。显示全部
需要分情况,如果是不影响业务的数据,我们应该转到另外一条消息流,这样可以避免主流出现异常,导致主流出现错误,如果是影响业务的话,最好把错误信息返回去,并记录到数据库。 收起
互联网服务 · 2013-05-02
浏览373
lxstaring lxstaring 软件开发工程师 yajie of shanghai china
不会用啊:'(显示全部
不会用啊:'( 收起
互联网服务 · 2013-05-02
浏览377
sangmin214 sangmin214 系统工程师 SS
一般使用exception handler处理吧显示全部
一般使用exception handler处理吧 收起
系统集成 · 2013-05-02
浏览383

提问者

lxstaring
软件开发工程师 yajie of shanghai china
擅长领域: 中间件
评论81

问题状态

  • 发布时间:2013-05-02
  • 关注会员:1 人
  • 问题浏览:3588
  • 最近回答:2013-05-10
  • X社区推广