Re: Validation exceptions
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.