Removed existential conditions on class declaration testing
Stopped logging errors and start throwing exceptions
Passed cURL error number as second parameter of exception constructor