Exception classes目次
The MongoDB\Driver\Exception\AuthenticationException classはじめにThrown when the driver fails to authenticate with the server. クラス概要MongoDB\Driver\Exception\AuthenticationException
class MongoDB\Driver\Exception\AuthenticationException
extends
MongoDB\Driver\Exception\ConnectionException
implements
MongoDB\Driver\Exception\Exception {
/* 継承したプロパティ */
protected
arraynull
$errorLabels;
protected
string
$message = "";
private
string
$string = "";
protected
int
$code;
protected
string
$file = "";
protected
int
$line;
private
array
$trace = [];
private
Throwablenull
$previous = null;
/* 継承したメソッド */
final public bool MongoDB\Driver\Exception\RuntimeException::hasErrorLabel(string
$errorLabel )final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}The MongoDB\Driver\Exception\BulkWriteException classはじめにThrown when a bulk write operation fails. クラス概要MongoDB\Driver\Exception\BulkWriteException
class MongoDB\Driver\Exception\BulkWriteException
extends
MongoDB\Driver\Exception\WriteException
implements
MongoDB\Driver\Exception\Exception {
/* 継承したプロパティ */
protected
MongoDB\Driver\WriteResult
$writeResult;
protected
arraynull
$errorLabels;
protected
string
$message = "";
private
string
$string = "";
protected
int
$code;
protected
string
$file = "";
protected
int
$line;
private
array
$trace = [];
private
Throwablenull
$previous = null;
/* 継承したメソッド */
final public MongoDB\Driver\WriteResult MongoDB\Driver\Exception\WriteException::getWriteResult()
final public bool MongoDB\Driver\Exception\RuntimeException::hasErrorLabel(string
$errorLabel )final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}The MongoDB\Driver\Exception\CommandException classはじめにThrown when a command fails. クラス概要MongoDB\Driver\Exception\CommandException
class MongoDB\Driver\Exception\CommandException
extends
MongoDB\Driver\Exception\ServerException
implements
MongoDB\Driver\Exception\Exception {
/* プロパティ */
protected
object
$resultDocument;
/* 継承したプロパティ */
protected
arraynull
$errorLabels;
protected
string
$message = "";
private
string
$string = "";
protected
int
$code;
protected
string
$file = "";
protected
int
$line;
private
array
$trace = [];
private
Throwablenull
$previous = null;
/* メソッド */
final public object getResultDocument()
/* 継承したメソッド */
final public bool MongoDB\Driver\Exception\RuntimeException::hasErrorLabel(string
$errorLabel )final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}プロパティ
The MongoDB\Driver\Exception\ConnectionException classはじめにBase class for exceptions thrown when the driver fails to establish a database connection. クラス概要MongoDB\Driver\Exception\ConnectionException
class MongoDB\Driver\Exception\ConnectionException
extends
MongoDB\Driver\Exception\RuntimeException
implements
MongoDB\Driver\Exception\Exception {
/* 継承したプロパティ */
protected
arraynull
$errorLabels;
protected
string
$message = "";
private
string
$string = "";
protected
int
$code;
protected
string
$file = "";
protected
int
$line;
private
array
$trace = [];
private
Throwablenull
$previous = null;
/* 継承したメソッド */
final public bool MongoDB\Driver\Exception\RuntimeException::hasErrorLabel(string
$errorLabel )final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}The MongoDB\Driver\Exception\ConnectionTimeoutException classはじめにThrown when the driver fails to establish a database connection within a specified time limit (connectTimeoutMS) or server selection fails (serverSelectionTimeoutMS). クラス概要MongoDB\Driver\Exception\ConnectionTimeoutException
final
class MongoDB\Driver\Exception\ConnectionTimeoutException
extends
MongoDB\Driver\Exception\ConnectionException
implements
MongoDB\Driver\Exception\Exception {
/* 継承したプロパティ */
protected
arraynull
$errorLabels;
protected
string
$message = "";
private
string
$string = "";
protected
int
$code;
protected
string
$file = "";
protected
int
$line;
private
array
$trace = [];
private
Throwablenull
$previous = null;
/* 継承したメソッド */
final public bool MongoDB\Driver\Exception\RuntimeException::hasErrorLabel(string
$errorLabel )final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}The MongoDB\Driver\Exception\EncryptionException classはじめにBase class for exceptions thrown during client-side encryption. クラス概要MongoDB\Driver\Exception\EncryptionException
class MongoDB\Driver\Exception\EncryptionException
extends
MongoDB\Driver\Exception\RuntimeException
implements
MongoDB\Driver\Exception\Exception {
/* 継承したプロパティ */
protected
arraynull
$errorLabels;
protected
string
$message = "";
private
string
$string = "";
protected
int
$code;
protected
string
$file = "";
protected
int
$line;
private
array
$trace = [];
private
Throwablenull
$previous = null;
/* 継承したメソッド */
final public bool MongoDB\Driver\Exception\RuntimeException::hasErrorLabel(string
$errorLabel )final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}The MongoDB\Driver\Exception\Exception interfaceはじめにCommon interface for all driver exceptions. This may be used to catch only exceptions originating from the driver itself. クラス概要MongoDB\Driver\Exception\Exception
class MongoDB\Driver\Exception\Exception
{
}The MongoDB\Driver\Exception\ExecutionTimeoutException classはじめにThrown when a query or command fails to complete within a specified time limit (e.g. » maxTimeMS). クラス概要MongoDB\Driver\Exception\ExecutionTimeoutException
final
class MongoDB\Driver\Exception\ExecutionTimeoutException
extends
MongoDB\Driver\Exception\ServerException
implements
MongoDB\Driver\Exception\Exception {
/* 継承したプロパティ */
protected
arraynull
$errorLabels;
protected
string
$message = "";
private
string
$string = "";
protected
int
$code;
protected
string
$file = "";
protected
int
$line;
private
array
$trace = [];
private
Throwablenull
$previous = null;
/* 継承したメソッド */
final public bool MongoDB\Driver\Exception\RuntimeException::hasErrorLabel(string
$errorLabel )final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}変更履歴
The MongoDB\Driver\Exception\InvalidArgumentException classはじめにThrown when a driver method is given invalid arguments (e.g. invalid option types). クラス概要MongoDB\Driver\Exception\InvalidArgumentException
class MongoDB\Driver\Exception\InvalidArgumentException
extends
InvalidArgumentException
implements
MongoDB\Driver\Exception\Exception {
/* 継承したプロパティ */
protected
string
$message = "";
private
string
$string = "";
protected
int
$code;
protected
string
$file = "";
protected
int
$line;
private
array
$trace = [];
private
Throwablenull
$previous = null;
/* 継承したメソッド */
final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}The MongoDB\Driver\Exception\LogicException classはじめにThrown when the driver is incorrectly used (e.g. rewinding a cursor). クラス概要MongoDB\Driver\Exception\LogicException
class MongoDB\Driver\Exception\LogicException
extends
LogicException
implements
MongoDB\Driver\Exception\Exception {
/* 継承したプロパティ */
protected
string
$message = "";
private
string
$string = "";
protected
int
$code;
protected
string
$file = "";
protected
int
$line;
private
array
$trace = [];
private
Throwablenull
$previous = null;
/* 継承したメソッド */
final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}The MongoDB\Driver\Exception\RuntimeException classはじめにThrown when the driver encounters a runtime error (e.g. internal error from » libmongoc). クラス概要MongoDB\Driver\Exception\RuntimeException
class MongoDB\Driver\Exception\RuntimeException
extends
RuntimeException
implements
MongoDB\Driver\Exception\Exception {
/* プロパティ */
protected
arraynull
$errorLabels;
/* 継承したプロパティ */
protected
string
$message = "";
private
string
$string = "";
protected
int
$code;
protected
string
$file = "";
protected
int
$line;
private
array
$trace = [];
private
Throwablenull
$previous = null;
/* メソッド */
final public bool hasErrorLabel(string
$errorLabel )/* 継承したメソッド */
final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}プロパティ
変更履歴
The MongoDB\Driver\Exception\ServerException classはじめにBase class for exceptions thrown by the server. The code of this exception and its subclasses will correspond to the original error code from the server. クラス概要MongoDB\Driver\Exception\ServerException
class MongoDB\Driver\Exception\ServerException
extends
MongoDB\Driver\Exception\RuntimeException
implements
MongoDB\Driver\Exception\Exception {
/* 継承したプロパティ */
protected
arraynull
$errorLabels;
protected
string
$message = "";
private
string
$string = "";
protected
int
$code;
protected
string
$file = "";
protected
int
$line;
private
array
$trace = [];
private
Throwablenull
$previous = null;
/* 継承したメソッド */
final public bool MongoDB\Driver\Exception\RuntimeException::hasErrorLabel(string
$errorLabel )final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}The MongoDB\Driver\Exception\SSLConnectionException class (deprecated)警告
This exception class is deprecated and may be removed in a future major version. The driver has never thrown this exception. はじめにThrown when the driver fails to establish an SSL connection with the server. クラス概要MongoDB\Driver\Exception\SSLConnectionException
final
class MongoDB\Driver\Exception\SSLConnectionException
extends
MongoDB\Driver\Exception\ConnectionException
implements
MongoDB\Driver\Exception\Exception {
/* 継承したプロパティ */
protected
arraynull
$errorLabels;
protected
string
$message = "";
private
string
$string = "";
protected
int
$code;
protected
string
$file = "";
protected
int
$line;
private
array
$trace = [];
private
Throwablenull
$previous = null;
/* 継承したメソッド */
final public bool MongoDB\Driver\Exception\RuntimeException::hasErrorLabel(string
$errorLabel )final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}The MongoDB\Driver\Exception\UnexpectedValueException classはじめにThrown when the driver encounters an unexpected value (e.g. during BSON serialization or deserialization). クラス概要MongoDB\Driver\Exception\UnexpectedValueException
class MongoDB\Driver\Exception\UnexpectedValueException
extends
UnexpectedValueException
implements
MongoDB\Driver\Exception\Exception {
/* 継承したプロパティ */
protected
string
$message = "";
private
string
$string = "";
protected
int
$code;
protected
string
$file = "";
protected
int
$line;
private
array
$trace = [];
private
Throwablenull
$previous = null;
/* 継承したメソッド */
final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}The MongoDB\Driver\Exception\WriteException classはじめにBase class for exceptions thrown by a failed write operation. The exception encapsulates a MongoDB\Driver\WriteResult object. クラス概要MongoDB\Driver\Exception\WriteException
abstract
class MongoDB\Driver\Exception\WriteException
extends
MongoDB\Driver\Exception\ServerException
implements
MongoDB\Driver\Exception\Exception {
/* プロパティ */
protected
MongoDB\Driver\WriteResult
$writeResult;
/* 継承したプロパティ */
protected
arraynull
$errorLabels;
protected
string
$message = "";
private
string
$string = "";
protected
int
$code;
protected
string
$file = "";
protected
int
$line;
private
array
$trace = [];
private
Throwablenull
$previous = null;
/* メソッド */
final public MongoDB\Driver\WriteResult getWriteResult()
/* 継承したメソッド */
final public bool MongoDB\Driver\Exception\RuntimeException::hasErrorLabel(string
$errorLabel )final public string Exception::getMessage()
final public Throwablenull Exception::getPrevious()
final public int Exception::getCode()
final public string Exception::getFile()
final public int Exception::getLine()
final public array Exception::getTrace()
final public string Exception::getTraceAsString()
public string Exception::__toString()
private void Exception::__clone()
}プロパティ
変更履歴
|