Fix undefined class when throwing cURL exception