New LibLastFM code

Max Howell max at last.fm
Thu Oct 30 19:23:50 CET 2008


> What exactly should i wrap in a try/catch? there is already a bunch  
> of stuff being protected by try/catch in that file.


I would give line numbers but chances are yours and mine now vary, so:

WsReply::onFinished()
{
     // snip
     // last lines:

     try
     {
         emit finished( this );
     }
     catch (CoreDomElement::Exception& e)
     {
         qWarning() << "Naughty programmer! Unhandled exception:" << e;
     }
}

Max


More information about the Amarok-devel mailing list