• 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 not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

try catch not working


  • Subject: try catch not working
  • From: Amedeo Mantica <email@hidden>
  • Date: Mon, 13 Jun 2005 19:08:48 +0200

Hi

I have thie piece of cone for inserting ad object from my editing context into the database

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

worked very well, but now with Xcode 2.1 if there are errors in the savechanges routine WO display me the expeption error intead to go to the catch code.
Does anyone have suggestion?
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

  • Follow-Ups:
    • Re: try catch not working
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: WO and CoreData?
  • Next by Date: Re: Tracking Fields and EOF
  • Previous by thread: Re: WO and CoreData?
  • Next by thread: Re: try catch not working
  • Index(es):
    • Date
    • Thread