feat(core): Modify BaseExceptionFilter to print exception properties #13875
+2
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #13550 #13870
What is the new behavior?
First of all, I sincerely apologize for creating a new PR for the same issue. I couldn’t find the commit related to the previous approach of using the inspect utility function in #13870, so I created a PR.
In #13870, the
combineStackTrace
method was used to trace thecause
ofError
. However, it does not output other properties of the error object as intended by the code author.While I agree that it's important to print the
cause
property of theError
, I also believe that other properties should be printed as well.Below is an example of an error that occurred with the database using the pg library. It includes a code to identify the error and hints for debugging.
As shown in the example above, I believe it would be useful for debugging if other property values of the error object are printed.
I would like to ask for your opinion on this issue.
Does this PR introduce a breaking change?
Other information
(I wasn’t sure whether to leave this in the issue section or the PR section, so I left it in the PR section to show the code changes. I apologize if it should have been in the issue section instead.)