Atitit cross-platform exception handling (2)--------Exception Conversion-----java C # JS exception object structure Compare and convert

Source: Internet
Author: User
Tags mscorlib

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.