Fall back to driver's RuntimeException instead of SPL

This commit is contained in:
Jeremy Mikola
2015-09-02 16:13:59 -04:00
parent 6bafc95e38
commit 04df99287e
+2 -2
View File
@@ -106,7 +106,7 @@ zend_class_entry* phongo_exception_from_phongo_domain(php_phongo_error_domain_t
}
MONGOC_ERROR("Resolving unknown exception domain!!!");
return spl_ce_RuntimeException;
return php_phongo_runtimeexception_ce;
}
zend_class_entry* phongo_exception_from_mongoc_domain(uint32_t /* mongoc_error_domain_t */ domain, uint32_t /* mongoc_error_code_t */ code)
{
@@ -166,7 +166,7 @@ zend_class_entry* phongo_exception_from_mongoc_domain(uint32_t /* mongoc_error_d
return phongo_ce_mongo_connection_exception;
#endif
default:
return spl_ce_RuntimeException;
return php_phongo_runtimeexception_ce;
}
}
PHONGO_API zval* phongo_throw_exception(php_phongo_error_domain_t domain TSRMLS_DC, const char *format, ...)