You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
【Chaosblade-exec-jvm】use throwCustomException throws a custom exception, and the custom exception corresponding to catch cannot be caught in code. Is there any good solution for this
#1061
Open
Light-long opened this issue
Aug 9, 2024
· 0 comments
I have written a plugin myself, which can implement the Exception throwing when calling xxx, and the exception thrown can be a subclass of java.lang. exception, for example:
./blade create xxx throwCustomException --pid 1 --exception com.xxx.CustomException --exception-message test
The current performance does throw an Exception, but I've found that if a catch CustomException isn't catch-able, only a catch Exception is
Describe what you expected to happen
Our purpose: When injecting CustomException, we can validate the downgrade by catching CustomException in our code
Do you have any good solutions?
The text was updated successfully, but these errors were encountered:
Issue Description
I have written a plugin myself, which can implement the Exception throwing when calling xxx, and the exception thrown can be a subclass of java.lang. exception, for example:
./blade create xxx throwCustomException --pid 1 --exception com.xxx.CustomException --exception-message test
The current performance does throw an Exception, but I've found that if a catch CustomException isn't catch-able, only a catch Exception is
Describe what you expected to happen
Our purpose: When injecting CustomException, we can validate the downgrade by catching CustomException in our code
Do you have any good solutions?
The text was updated successfully, but these errors were encountered: