Hidden errors

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

Hidden errors

Paul Baumann

I just spent a couple hours trying to determine why one ComboBoxInputFieldView was broadcasting selection changes but two others were not. The exception handler in this VW 7.5 method was hiding the problem:

 

InputFieldView>>hasEditValue

                "Answer true if the receiver contains a valid edit value, otherwise

                answer false. This method should be used in conjunction with

                #editValue to avoid having to handle the wide range of exceptions

                that may result when conversion is requested for invalid input."

 

                ^[self editValue. true]

                                on: Object errorSignal

                                do: [:ex | ex return: false]

 

Cincom, please consider changing the handler to at least write something to the Transcript when an error happens. Take menus for example, when there are any problems with menus the default behavior is to write a message on the Transcript that says what the error was and how to enable a debugger instead of just logging.

 

Paul Baumann



This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of IntercontinentalExchange, Inc. (ICE), its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired.

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc