It’s possible but involves much more tedious wrapping. Here’s an earlier thread from this forum: Issues interfacing between C++ and Fortran - #4 by FortranFan
If you know a function may raise an exception you need to use the try-block to catch any exceptions, and convert them to “Fortran” error handling → integer status flag and an optional error message output arguments.