Re: catching multiple exceptions

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Andy B." <a_borka@xxxxxxxxxxxxx> wrote in message
news:ujrrhiUmJHA.4540@xxxxxxxxxxxxxxxxxxxxxxx
So the address class should just be a carrier of data. Whatever needs to
be validated should be done at the bigger level (since an address can't
exist by itself) it will be part of another class.

No, I think the address class should validate itself. There are several ways
to do it. One way is to accept the values entered no matter what they are
and have seperate properties the gui can test to determine if there are
errors. Then if the user saves they will get an exception. However this
should never happen as the GUI should warn the user their address is invalid
and stop them saving.

Michael


.



Relevant Pages

  • Re: OOP - a question about database access
    ... >> Because managing integrity is managing data. ... > validated quickly in the GUI ... Who says the dbms cannot validate the data quickly on the user's computer? ...
    (comp.object)
  • Re: Application logic and Business logic
    ... >In many cases you want to have interactive validation in your GUI. ... implement the business logic using a DBMS. ... If something can not validate that then it is not a DBMS. ... DBMSs are computationally complete. ...
    (comp.object)
  • Re: Validating GUI
    ... If you choose to validate immediately, you might have to validate OnSave/later also, since some values might be dependent on other, not yet entered information or is a more lengthy validation. ... Assume you have a GUI with quite many controls and a save button. ... What is the best practice to do when validating all the controls in the GUI. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Changing JFrame components at runtime
    ... Don't forget to call validateafter a remove/add. ... The GUI is updated both using validate() or updateUI(). ...
    (comp.lang.java.gui)
  • Re: OT: Tim Adams says he agrees with me about Sandman!
    ... Poor michael glasser's reading comprehension problem at it's ... finest. ... Here is ia short lesson for you michael, "doesn't validate ...
    (comp.sys.mac.advocacy)