I don't think catching exceptions is costly at all, but making HTTP requests is. That's the real problem here - no matter how you do it you'd have to make one HTTP request per username, which will be slow if you're fetching for a number of user accounts at once.
-Jeff On Sat, Feb 7, 2009 at 12:18 AM, Coppermill <[email protected]> wrote: > > Catching exceptions is very costly. > > The problem is I have a number of users that I need to check to see if > they have an album, and many of them won't have a Picasa album. > > I'm writing a photo album for a community website and if members have > a Picasa album with the right tags then their photos will be displayed > on the community site. > > On Feb 6, 8:46 pm, Jeff Fisher <[email protected]> wrote: > > Why not just catch the exception? > > > > Cheers, > > -Jeff > > > > On Feb 6, 7:47 am, Coppermill <[email protected]> wrote: > > > > > I would like to find an IsUser method for the Web Album, I need to > > > check to see if the user exists first before I run any Queries on > > > Picasa, because if the user does not exist it throws an exception. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Picasa-Data-API?hl=en -~----------~----~----~----~------~----~------~--~---
