• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Validation exceptions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Validation exceptions


  • Subject: Re: Validation exceptions
  • From: Tom Woteki <email@hidden>
  • Date: Sun, 5 Jan 2003 10:06:48 -0500

Are you calling validateVerifyq directly, or is WO calling it as part of its form handling mechanism? validationFailed... will not be called automatically in the former case.

T
On Sunday, January 5, 2003, at 09:58 AM, Tom Woteki wrote:

Ed:
It would help (me anyway) to see the code for masterStringValidator

Perhaps this will help somehow: your remark below is incorrect in regard to RuntimeExceptions, of which NSValdation.ValidationException is a child. RuntimeExceptions need not be declared in a throws clause nor do they have to be caught anywhere. If not caught somewhere, they will propagate to the very top.

In other words, you could simplify the signature of your masterStringValidator method (and others) as follows:

private String masterStringValidator( String, String, boolean );

Hope this helps.

Tom


On Sunday, January 5, 2003, at 06:25 AM, Ed Powell wrote:

My understanding of exceptions is that you either need to try/catch
exceptions where they may occur, or define in the method's constructor
that it will be throwing the exception, and it gets handled 'up the
chain'.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Validation exceptions
      • From: Ed Powell <email@hidden>
References: 
 >Re: Validation exceptions (From: Tom Woteki <email@hidden>)

  • Prev by Date: Re: Validation exceptions
  • Next by Date: Re: Validation exceptions
  • Previous by thread: Re: Validation exceptions
  • Next by thread: Re: Validation exceptions
  • Index(es):
    • Date
    • Thread