Opened 11 years ago

Last modified 8 years ago

#9640 closed enhancement

Change PARI error catching mechanism — at Version 3

Reported by: jdemeyer Owned by: was
Priority: major Milestone: sage-5.13
Component: interfaces Keywords: pari error interrupt
Cc: leif, jdemeyer Merged in:
Authors: Jeroen Demeyer Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by jdemeyer)

Currently, the exceptions thrown by PARI are rather cryptic, like

Traceback (most recent call last):
PariError:  (15)

Using a mechanism similar to #9636, it should be possible to catch the full text of the exception and use it to throw PariError. We should change to using cb_pari_handle_exception() instead of err_catch() to catch PARI exceptions.

Dependencies: #10115, #9893, #9678

Change History (4)

comment:1 Changed 11 years ago by jdemeyer

  • Description modified (diff)

comment:2 Changed 11 years ago by leif

  • Authors set to Jeroen Demeyer
  • Cc leif added

Changed 11 years ago by jdemeyer

Old patch for reference

comment:3 Changed 11 years ago by jdemeyer

  • Description modified (diff)
  • Keywords pari error interrupt added
Note: See TracTickets for help on using tickets.