is there a convenient way of retrieving Julia exceptions in the C interface so that they appear the same way that they do on the Julia REPL? Considering a call to an
undefined_function(), on the REPL the output is :
ERROR: UndefVarError: undefined_function not defined.
Following the example on Julia on Exceptions for C embedded Julia code, the result of
printf("%s \n", jl_typeof_str(jl_exception_occurred()));
which wouldn’t be much useful in more complicated scenarios. Especially considering exception calls following an
include, which also need to give informations about errors at specific line numbers, etc…
Is there a way to retrieve the same kind of detail of Julia exceptions in C without having to rewrite them all with the
jl_type_error C interface?