Update Api.php

Mage::logException awaits an Object of type Exception.