• 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: ValidationException, need help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Tiger?
  • Next by Date: Re: Tiger?
  • Previous by thread: Re: ValidationException, need help
  • Next by thread: FOP/XSL and region-start
  • Index(es):
    • Date
    • Thread