• 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
try catch doesn't catch my exception...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

try catch doesn't catch my exception...


  • Subject: try catch doesn't catch my exception...
  • From: Amedeo Mantica <email@hidden>
  • Date: Mon, 10 Oct 2005 11:11:54 +0200

Hi,
I have the following code


        try
        {
            System.out.println("!!!!!!!!!!!Saving changes");
            ec.saveChanges();
        }
        catch (NSValidation.ValidationException exception)
        {
            // caught an exception on save.
            errorsPresent = true;
            errorString = (String) exception.key();
            System.out.println("Errors present"+errorString);
            return null;
        }



ec is my EditiingContext

I got execption in the run log...

[2005-10-10 11:05:04 CEST] <WorkerThread0> Validation failed on an object [null] with keypath = theLocale.nomeCognome and exception: The nomeCognome property of locali is not allowed to be null.
!!!!!!!!!!!Saving changes

but the catch code is totally ignored! :(

anyone can help?
Thanks
 _______________________________________________
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

  • Follow-Ups:
    • Re: try catch doesn't catch my exception...
      • From: Wolfram Stebel <email@hidden>
    • Re: try catch doesn't catch my exception...
      • From: email@hidden
  • Prev by Date: Re: NSTimestamp
  • Next by Date: Re: try catch doesn't catch my exception...
  • Previous by thread: Re: NSTimestamp
  • Next by thread: Re: try catch doesn't catch my exception...
  • Index(es):
    • Date
    • Thread