alice-teacher Alice 2 "While the world is running" event

Vanderhyde, James vanderhyde at sxu.edu
Thu Mar 2 09:39:39 EST 2017


I agree with Bob. Just catching the exception before the user sees it would be a good enough fix. You could have an Alice alert (instead of a Queen alert) that says something to the effect of “The action at the end of the While the world is running event was not run, because the world has stopped.” Then it is not a silent fail, so the user does not have to wonder why the code was not run. The user gets a descriptive error message rather than a NullPointerException.

James
—
James Vanderhyde
Assistant Professor, Computer Science
Program Director, Master of Applied Computer Science
Saint Xavier University
3700 W. 103rd St.
Chicago, IL 60655
773-298-3454

On Mar 1, 2017, at 8:51 PM, robert durtschi <robert.durtschi at gcsu.edu<mailto:robert.durtschi at gcsu.edu>> wrote:

Since the error only occurs when the "play" window is closed. I Think (not actually looking at the "play" window close handler) that it could be captured there with an exception handler that would catch the null handle exception and kill it before it got high enough to be visible.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20170302/6624bfe8/attachment.html>


More information about the alice-teachers mailing list