Can Qt Creator warn about unhandled exception
-
Hello, sorry for bad english.
I've seen that Qt Creator now warn about a lot of things in real time.
Is there a way to set Qt Creator to warn about unhandled exception, when i call a function that may throw un exception without a try catch ?
Thanks a lot, have a nice day.
-
Since all functions can throw an exception when they are not marked as nothrow I think this would create a lot of warnings...
-
Hello, sorry for bad english.
I've seen that Qt Creator now warn about a lot of things in real time.
Is there a way to set Qt Creator to warn about unhandled exception, when i call a function that may throw un exception without a try catch ?
Thanks a lot, have a nice day.
@djentx said in Can Qt Creator warn about unhandled exception:
Is there a way to set Qt Creator to warn about unhandled exception, when i call a function that may throw un exception without a try catch ?
No, and it shouldn't. A function isn't obligated to catch the exception! You may have an exception thrown 3-4-5 calls deep that is caught only at the bottom-most stack frame, and this is valid. Creator can't, nor should, know what you intend(ed) to do.