Re: Error handling in Perl

2012-01-27 Thread Ovid
Hi Etienne, I've actually wrapped the *SOAP::WSDL::Client::call call in my Moose classes to trap various errors with Try::Tiny. I've had to set die_on_faults to true because I don't want to accidentally forget to trap an error. I fall back to regex tests. My actual code winds up looking like

Re: Error handling in Perl

2012-01-26 Thread Etienne Lawlor
Hey David, Do google faults need to be handled with the latest Perl modules or just soap faults? -Etienne -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api

Re: Error handling in Perl

2011-11-22 Thread David Torres
Hi Neil, As you noticed the library dies at faults by default but you can override this behavior by setting die_on_faults to 0, in which case the fault object will be returned to you. So you can do something like: my $page = $client-CampaignService()-get({serviceSelector = $selector}); if

Error handling in Perl

2011-11-18 Thread Neil Kirk
Hi I am trying to catch errors returned back from Adwords in my program, but am unsure how to do it. With an expired authentication tekon in the client, the lines: $page = $adClient-CampaignService()-get({ serviceSelector = $selector, }); which output: Error deserializing message: A fault was