[mercury-users] question about error/1

Nicholas Nethercote njn at csse.unimelb.edu.au
Thu Jan 24 09:35:37 AEDT 2008


Hi,

When I call error/1, the program terminates with a message like this:

   Uncaught Mercury exception:
   Software Error: <message>

Is it possible to omit the "Uncaught Mercury exception: Software Error:" 
bit?

I guess the only way is to have a 'try' somewhere higher up, and if the 
error occurs then print <message> via the usual I/O predicates?

Nick
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list