Atitit cross-platform exception handling (2)-------- Exception Conversion -----java C # JS Exception Object structure comparison and Conversion
{
"@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.ExceptionException Properties
The. 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. |
/td> |
|
gets or sets HRESULT, a coded numerical value that's 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. |
author:: Nickname :Old Wow's claws( Full Name::AttilaxAkbar Al Rapanui Attilaksachanui)
Kanji Name: Etila ( Ayron) , email:[email protected]
reprint Please indicate source: http://www.cnblogs.com/attilax/
Atiend
Atitit cross-platform exception handling (2)--------Exception Conversion-----java C # JS exception object structure Compare and convert