Exception classesTable of Contents
The MongoDB\Driver\Exception\AuthenticationException classIntroductionThrown when the driver fails to authenticate with the server. Class synopsisMongoDB\Driver\Exception\AuthenticationException
class MongoDB\Driver\Exception\AuthenticationException
extends
MongoDB\Driver\Exception\ConnectionException
implements
MongoDB\Driver\Exception\Exception
{
/* Inherited properties */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Inherited methods */
final public string Exception::getMessage
( void
)
final public Throwable Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The MongoDB\Driver\Exception\BulkWriteException classIntroductionThrown when a bulk write operation fails. Class synopsisMongoDB\Driver\Exception\BulkWriteException
class MongoDB\Driver\Exception\BulkWriteException
extends
MongoDB\Driver\Exception\WriteException
implements
MongoDB\Driver\Exception\Exception
{
/* Inherited properties */
protected
MongoDB\Driver\WriteResult
$writeResult
;
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Inherited methods */
final public MongoDB\Driver\WriteResult MongoDB\Driver\Exception\WriteException::getWriteResult
( void
)
final public string Exception::getMessage
( void
)
final public Throwable Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The MongoDB\Driver\Exception\ConnectionException classIntroductionBase class for exceptions thrown when the driver fails to establish a database connection. Class synopsisMongoDB\Driver\Exception\ConnectionException
class MongoDB\Driver\Exception\ConnectionException
extends
MongoDB\Driver\Exception\RuntimeException
implements
MongoDB\Driver\Exception\Exception
{
/* Inherited properties */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Inherited methods */
final public string Exception::getMessage
( void
)
final public Throwable Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The MongoDB\Driver\Exception\ConnectionTimeoutException classIntroductionThrown when the driver fails to establish a database connection within a specified time limit (e.g. » connectTimeoutMS). Class synopsisMongoDB\Driver\Exception\ConnectionTimeoutException
class MongoDB\Driver\Exception\ConnectionTimeoutException
extends
MongoDB\Driver\Exception\ConnectionException
implements
MongoDB\Driver\Exception\Exception
{
/* Inherited properties */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Inherited methods */
final public string Exception::getMessage
( void
)
final public Throwable Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The MongoDB\Driver\Exception\Exception interfaceIntroductionCommon interface for all driver exceptions. This may be used to catch only exceptions originating from the driver itself. Class synopsisMongoDB\Driver\Exception\Exception
class MongoDB\Driver\Exception\Exception
{
}The MongoDB\Driver\Exception\ExecutionTimeoutException classIntroductionThrown when a query or command fails to complete within a specified time limit (e.g. » maxTimeMS). Class synopsisMongoDB\Driver\Exception\ExecutionTimeoutException
class MongoDB\Driver\Exception\ExecutionTimeoutException
extends
MongoDB\Driver\Exception\RuntimeException
implements
MongoDB\Driver\Exception\Exception
{
/* Inherited properties */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Inherited methods */
final public string Exception::getMessage
( void
)
final public Throwable Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The MongoDB\Driver\Exception\InvalidArgumentException classIntroductionThrown when a driver method is given invalid arguments (e.g. invalid option types). Class synopsisMongoDB\Driver\Exception\InvalidArgumentException
class MongoDB\Driver\Exception\InvalidArgumentException
extends
InvalidArgumentException
implements
MongoDB\Driver\Exception\Exception
{
/* Inherited properties */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Inherited methods */
final public string Exception::getMessage
( void
)
final public Throwable Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The MongoDB\Driver\Exception\LogicException classIntroductionThrown when the driver is incorrectly used (e.g. rewinding a cursor). Class synopsisMongoDB\Driver\Exception\LogicException
class MongoDB\Driver\Exception\LogicException
extends
LogicException
implements
MongoDB\Driver\Exception\Exception
{
/* Inherited properties */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Inherited methods */
final public string Exception::getMessage
( void
)
final public Throwable Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The MongoDB\Driver\Exception\RuntimeException classIntroductionThrown when the driver encounters a runtime error (e.g. internal error from » libmongoc). Class synopsisMongoDB\Driver\Exception\RuntimeException
class MongoDB\Driver\Exception\RuntimeException
extends
RuntimeException
implements
MongoDB\Driver\Exception\Exception
{
/* Inherited properties */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Inherited methods */
final public string Exception::getMessage
( void
)
final public Throwable Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The MongoDB\Driver\Exception\SSLConnectionException classIntroductionThrown when the driver fails to establish an SSL connection with the server. Class synopsisMongoDB\Driver\Exception\SSLConnectionException
class MongoDB\Driver\Exception\SSLConnectionException
extends
MongoDB\Driver\Exception\ConnectionException
implements
MongoDB\Driver\Exception\Exception
{
/* Inherited properties */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Inherited methods */
final public string Exception::getMessage
( void
)
final public Throwable Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The MongoDB\Driver\Exception\UnexpectedValueException classIntroductionThrown when the driver encounters an unexpected value (e.g. during BSON serialization or deserialization). Class synopsisMongoDB\Driver\Exception\UnexpectedValueException
class MongoDB\Driver\Exception\UnexpectedValueException
extends
UnexpectedValueException
implements
MongoDB\Driver\Exception\Exception
{
/* Inherited properties */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Inherited methods */
final public string Exception::getMessage
( void
)
final public Throwable Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The MongoDB\Driver\Exception\WriteException classIntroductionBase class for exceptions thrown by a failed write operation. The exception encapsulates a MongoDB\Driver\WriteResult object. Class synopsisMongoDB\Driver\Exception\WriteException
abstract
class MongoDB\Driver\Exception\WriteException
extends
MongoDB\Driver\Exception\RuntimeException
implements
MongoDB\Driver\Exception\Exception
{
/* Properties */
protected
MongoDB\Driver\WriteResult
$writeResult
;
/* Inherited properties */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Methods */
final public MongoDB\Driver\WriteResult getWriteResult
( void
)
/* Inherited methods */
final public string Exception::getMessage
( void
)
final public Throwable Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}Properties
|