mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-22 16:08:15 +02:00
Fall back to driver's RuntimeException instead of SPL
This commit is contained in:
+2
-2
@@ -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, ...)
|
||||
|
||||
Reference in New Issue
Block a user