| |

VerySource

 Forgot password?
 Register
Search
View: 569|Reply: 2

How can a method called with reflection catch the detailed error message thrown by that method?

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-11 00:40:01
| Show all posts |Read mode
How do I call a method called with reflection to catch the detailed error message thrown by the method? At present, Try Catch can only display "An exception occurred in the called target"
Reply

Use magic Report

0

Threads

23

Posts

20.00

Credits

Newbie

Rank: 1

Credits
20.00

 China

Post time: 2020-1-14 13:54:01
| Show all posts
Can you modify the return type of this method to be string, and return error information directly if there is an error
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-1-24 19:45:02
| Show all posts
Everyone help
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list