formatPE icon indicating copy to clipboard operation
formatPE copied to clipboard

about the function return

Open iHackerJi opened this issue 3 years ago • 2 comments

When function error, why use the throw Exception the way? why not return result Let's us to decide , when i not register the Exception Handler , my program will close ,not printf anything about the debug info

iHackerJi avatar May 21 '22 14:05 iHackerJi

I think that exceptions looks more natural here than statuses. What difficulties do you face when handling exceptions?

HoShiMin avatar May 21 '22 15:05 HoShiMin

I think that exceptions looks more natural here than statuses. What difficulties do you face when handling exceptions?

no anything difficulties sir,i just want to say,use this way will let this library become strange,i can not easy to use it if the function error,i must be use try catch or register the exception handler Can only know the library function error

iHackerJi avatar May 21 '22 16:05 iHackerJi