Sadly, no... no such luck.
About the only thing you could to is have the function return a special value and check that value in the calling code... if your code determines that it's an error value, then you could raise a "controlled" error.
--Jeff Moden
Change is inevitable... Change for the better is not.