MongoDB\Driver\Exception\RuntimeException::hasErrorLabel
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
MongoDB\Driver\Exception\RuntimeException::hasErrorLabel
Референца за `mongodb-driver-runtimeexception.haserrorlabel.php` со подобрена типографија и навигација.
MongoDB\Driver\Exception\RuntimeException::hasErrorLabel
(mongodb >= 1.6.0)
MongoDB\Driver\Exception\RuntimeException::hasErrorLabel — Returns whether an error label is associated with an exception
= NULL
Returns whether the errorLabel has been set for this exception. Error labels are set by either the server or the extension to indicate specific situations that may be handled by an application. A common situation might be determining whether to safely retry a transaction that failed due to a transient error (e.g. network error, transaction conflict). Examples of error labels are TransientTransactionError
and UnknownTransactionCommitResult.
Параметри
errorLabel-
Името на
errorLabelto test for.
Вратени вредности
Whether the given errorLabel is associated with this exception.
Види Исто така
- MongoDB\Driver\Session::commitTransaction() - Потврдува трансакција
- » MongoDB documentation on transactions