Re: ValidationException, need help
Re: ValidationException, need help
- Subject: Re: ValidationException, need help
- From: Florijan Stamenkovic <email@hidden>
- Date: Thu, 21 Apr 2005 11:41:46 +0200
I _think_ that the argument and the return value should be declared
just as Object. It would make sense, since those values partly define
the method's "footprint". Besides that it seems just ok (I never did it
though, I just looked it up in Practical WO).
Besides that, maybe misspellings or misplacement?
Cheers
F
On Apr 21, 2005, at 11:10, Amedeo Mantica wrote:
as suuggested in some books or online, i create a method like this....
public String validateAttibbute(String Attribute) throws
NSValidation.ValidationException
{
if(Attribute....code for checking...)
{
//code if attribute is OK
}
else
{
String errorString = "Attribute is BAD";
throw new NSValidation.ValidatioException(errorString);
}
}
This method should be called automatically, but....is not called!..
also who passes the arguments to my method?
Thanks
Amedeo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden