Handling exceptions in C

jl_checked_assignment(jl_get_binding_wr(jl_main_module, jl_symbol("Main"), 0), jl_box_int64(7)); terminates the program preventing me from checking jl_exception_occurred(). Only JL_TRY/JL_CATCH works. In which case do I use which?

EDIT: From what I’ve found these hard coded errors work differently than Julia exceptions:

  Main = 3
catch e
  println("You should have entered a numeric value")

never reaches the catch block. Syntax errors also are examples of these errors. What’s a fitting name encapsulating these?