Catch HTML errors thrown from Yahoo... what were you thinking yahoo developers?
Exception handling