码迷,mamicode.com
首页 > 编程语言 > 详细

Atitit 跨平台异常处理(2)--------异常转换 -----java c# js异常对象结构比较and转换

时间:2016-10-28 07:40:24      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:sage   结构   describes   air   family   his   trace   use   sql   

 

Atitit 跨平台异常处理(2)--------异常转换 -----java c# js异常对象结构比较and转换

 

 

{

"@type":"java.lang.RuntimeException",

"cause":{

"@type":"com.attilax.sql.EmptyRzt",

"localizedMessage":"mmmm1",

"message":"mmmm1",

"stackTrace":[{

"className":"com.attilax.encry.rsaTest",

"fileName":"rsaTest.java",

"lineNumber":37,

"methodName":"t2",

"nativeMethod":false

},{

"className":"com.attilax.encry.rsaTest",

"fileName":"rsaTest.java",

"lineNumber":27,

"methodName":"t",

"nativeMethod":false

},{

"className":"com.attilax.encry.rsaTest",

"fileName":"rsaTest.java",

"lineNumber":16,

"methodName":"main",

"nativeMethod":false

}],

"suppressed":[]

},

"localizedMessage":"biz ex",

"message":"biz ex",

"stackTrace":[{

"className":"com.attilax.encry.rsaTest",

"fileName":"rsaTest.java",

"lineNumber":29,

"methodName":"t",

"nativeMethod":false

},{

"className":"com.attilax.encry.rsaTest",

"fileName":"rsaTest.java",

"lineNumber":16,

"methodName":"main",

"nativeMethod":false

}],

"suppressed":[]

}

 

system.exception

Exception Properties

.NET Framework (current version)

Other Versions

 

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

Properties

 

Name

Description

技术分享

Data

Gets a collection of key/value pairs that provide additional user-defined information about the exception.

技术分享

HelpLink

Gets or sets a link to the help file associated with this exception.

技术分享

HResult

Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.

技术分享

InnerException

Gets the Exception instance that caused the current exception.

技术分享

Message

Gets a message that describes the current exception.

技术分享

Source

Gets or sets the name of the application or the object that causes the error.

技术分享

StackTrace

Gets a string representation of the immediate frames on the call stack.

技术分享

TargetSite

Gets the method that throws the current exception.

 

 

作者:: 绰号:老哇的爪子 ( 全名::Attilax Akbar Al Rapanui 阿提拉克斯 阿克巴 阿尔 拉帕努伊 ) 

汉字名:艾提拉(艾龙)   EMAIL:1466519819@qq.com

转载请注明来源: http://www.cnblogs.com/attilax/

Atiend

 

 

Atitit 跨平台异常处理(2)--------异常转换 -----java c# js异常对象结构比较and转换

标签:sage   结构   describes   air   family   his   trace   use   sql   

原文地址:http://www.cnblogs.com/attilax/p/6006322.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!