[mercury-users] question about error/1
Ralph Becket
rafe at csse.unimelb.edu.au
Thu Jan 24 09:45:48 AEDT 2008
Nicholas Nethercote, Thursday, 24 January 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?
That's rather the point of error/1. You just use throw/1 for other
exceptions.
> 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?
Yep.
--------------------------------------------------------------------------
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