update : 2015.11.03
php.shukuma.com검색:
|
The MongoProtocolException class(PECL mongo >= 1.5.0) 소개When talking to MongoDB 2.6.0, and later, certain operations (such as writes) may throw MongoProtocolException when the response from the server did not make sense - for example during network failure (we could read the entire response) or data corruption. This exception is also thrown when attempting to talk newer protocols then the server supports, for example using the MongoWriteBatch when talking to a MongoDB server prior to 2.6.0. 클래스 개요
MongoProtocolException
extends
MongoException
{
/* 상속된 프로퍼티 */
}예제Example #1 Catching MongoProtocolException Running the following example against MongoDB prior to 2.6.0 will throw an MongoProtocolException
<?php 위 예제들의 출력 예시: Current primary does not have a Write API |