C embedding - how to get the full exception message?

When embedding Julia in C, I know I can check whether some exception occurred in Julia using jl_exception_occurred() and jl_typeof_str() gives me what kind of exception it is, like UndefVar. But how do I get more details of the exception, for example, the symbol of the undefined variable, etc? Thanks!

Call Julia functions like showerror on the exception

Thanks!