Reporting error to end users

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Reporting error to end users

Alexandre Bergel
Hi!

I feel that Object>>error: is a bit too low level.
I tried to write a method errorEndUser:
-=-=-=-=-=-=-=-=-=-=-=-=
Object>>errorEndUser: aString
        "Open a end user friendly error notification"
        | answer |
        answer := UIManager default confirm: aString, String cr,  String cr, 'Do you want to open a debugger?'.
        answer
                ifTrue: [ self error: aString ]
                ifFalse: [ Processor terminateActive ]
-=-=-=-=-=-=-=-=-=-=-=-=

But doing a Processor terminateActive freezes the image. I need to do a cmd-. to make it live again.

Any idea how I can simply interrupt the current process without opening a debugger?

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project