Re: crash feature request
- Posted by D. Newhall <derek_newhall at yahoo.com> Mar 25, 2006
- 516 views
Ryan W. Johnson wrote: > > Thanks, Rob. While we're on the subject of error messages, what do you think > about adding a procedure that could generate a custom run-time error? Such as: > }}} <eucode> > error("Data is corrupt.") > </eucode> {{{ > It would cause the program to generate an ex.err file with the custom error > message and behave like any other run-time error. That would be cool. There are two issues, however. First, error() I'd bet is one of the most commonly written routines and everyone already has one or more they use constantly (I know every single one of my programs defines an error procedure). Second, you can similate it pretty easy by just calling ?1/0 after you output the error message to get a ex.err dump. The Euphoria Standard Library project : http://esl.sourceforge.net/ The Euphoria Standard Library mailing list : https://lists.sourceforge.net/lists/listinfo/esl-discussion