Skip to content

[Suggestion]: Exception Class should contain call stack . #55705

Closed as not planned
@athinboy

Description

@athinboy

Thank for your work and sorry for my bad english .
I had been a .net developer ,and had turn to java ,like almost .net developer in china .
I find some feature of java is useful for developer , so I hope that dotnet shoud adopt these features .

Suggestion:
Exception Class should contain call stack of the throw time,so the log system/IDE can log/show the call chain exactly and entirely.It is useful for developer to find the clue of exception .
Exception.StackTrace is not enough . log system may have special request .

https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#getStackTrace()

Also, Exception.ToString() is not good enough ,because there are just one stackframe ,not all the call stack . The output of Throwable.printStackTrace() in java is more useful.
https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions