« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 306 for InvalidArgumentException (0.001 sec.)
Componere\cast — Casting | PHP 8.3 10396
Componere\cast (Componere 2 >= 2.1.2) Componere\cast — Casting 説明 function Componere\cast ( string $type , object $object ): object パラメータ type A user defined type object An object with a user defined type compatible with Type 戻り値 ... An object of type Type , cast from object エラー / 例外 警告 Shall throw InvalidArgumentException if the type of object is or is derived from an internal class 警告 Shall throw InvalidArgumentException if Type is an inte ... rface 警告 Shall throw InvalidArgumentException if Type is a trait 警告 Shall throw InvalidArgumentException if Type is an abstract 警告 Shall throw InvalidArgumentExcept ...
https://man.mtool.work/php/8.3/componere.cast.html
Componere\cast_by_ref — Casting | PHP 8.3 10198
Componere\cast_by_ref (Componere 2 >= 2.1.2) Componere\cast_by_ref — Casting 説明 function Componere\cast_by_ref ( string $type , object $object ): object パラメータ type A user defined type object An object with a user defined type compati ... An object of type Type , cast from object , where members are references to object members エラー / 例外 警告 Shall throw InvalidArgumentException if the type of object is or is derived from an internal class 警告 Shall throw InvalidArgumentException if Type is an inte ... rface 警告 Shall throw InvalidArgumentException if Type is a trait 警告 Shall throw InvalidArgumentException if Type is an abstract 警告 Shall throw InvalidArgumentExcept ...
https://man.mtool.work/php/8.3/componere.cast_by_ref.html
ReflectionProperty::setRawValue — set フックが定義されていたとしても、それを迂... 10198
ReflectionProperty::setRawValue (PHP 8 >= 8.4.0) ReflectionProperty::setRawValue — set フックが定義されていたとしても、それを迂回してプロパティの値を設定する 説明 public function ReflectionProperty::setRawValue ( object $object , mixed $val ... 例 例1 ReflectionProperty::setRawValue() の例 <?php class Example { public int $age { set { if ( $value <= 0 ) { throw new \InvalidArgumentException (); } $this -> age = $value ; } } } $example = new Example (); $rClass = new \ReflectionClass ( Example ::class); $rProp = ... lass -> getProperty ( 'age' ); // フックを経由して値を設定し、例外がスローされます try { $example -> age = - 2 ; } catch ( InvalidArgumentException ) { echo "InvalidArgumentException for setting property to -2\n" ; } try { $rProp -> setValue ( $example , - 2 ); } catch ... ( InvalidArgumentException ) { echo "InvalidArgumentException for using ReflectionProperty::setValue() with -2\n" ; } // しかし、下記は $age に -2 を ...
https://man.mtool.work/php/8.3/reflectionproperty.setrawvalue.html
MongoDB\BSON\Binary::__construct — Construct a new Binary | PHP 8.3 8517
MongoDB\BSON\Binary::__construct (mongodb >=1.0.0) MongoDB\BSON\Binary::__construct — Construct a new Binary 説明 final public function MongoDB\BSON\Binary::__construct ( string $data , int $type = MongoDB\BSON\Binary::TYPE_GENERIC ) パラメ ... data's type. Defaults to MongoDB\BSON\Binary::TYPE_GENERIC if not specified. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. Throws MongoDB\Driver\Exception\InvalidArgumentException if type is not an unsigned 8-bit inte ... ger. Throws MongoDB\Driver\Exception\InvalidArgumentException if type is MongoDB\BSON\Binary::TYPE_UUID or MongoDB\BSON\Binary::TYPE_OLD_UUID and data is not exactly 16 bytes in length ... type parameter defaults to MongoDB\BSON\Binary::TYPE_GENERIC if not specified. PECL mongodb 1.3.0 MongoDB\Driver\Exception\InvalidArgumentException is thrown if type is MongoDB\BSON\Binary::TYPE_UUID or MongoDB\BSON\Binary::TYPE_OLD_UUID and data is not exactly 16 bytes ...
https://man.mtool.work/php/8.3/mongodb-bson-binary.construct.html
MongoDB\Driver\Server::executeBulkWrite — Execute one or more write operations ... 8517
MongoDB\Driver\Server::executeBulkWrite (mongodb >=1.0.0) MongoDB\Driver\Server::executeBulkWrite — Execute one or more write operations on this server 説明 final public function MongoDB\Driver\Server::executeBulkWrite ( string $namespace , ... pply to the operation. 戻り値 Returns MongoDB\Driver\WriteResult on success. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException if bulk does not contain any write operations. Throws MongoDB\Driver\Exception\InvalidArgumentException if bulk has alread ... y been executed. MongoDB\Driver\BulkWrite objects may not be executed multiple times. Throws MongoDB\Driver\Exception\InvalidArgumentException if the "session" option is used in combination with an unacknowledged write concern. Throws MongoDB\Driver\Exception\Inval ... river\WriteConcern object as options is deprecated and will be removed in 2.0. PECL mongodb 1.4.4 MongoDB\Driver\Exception\InvalidArgumentException will be thrown if the "session" option is used in combination with an unacknowledged write concern. PECL mongodb 1.4.0 The ...
https://man.mtool.work/php/8.3/mongodb-driver-server.executebulkwrite.html
MongoDB\Driver\Manager::executeReadWriteCommand — Execute a database command th... 7822
MongoDB\Driver\Manager::executeReadWriteCommand (mongodb >=1.4.0) MongoDB\Driver\Manager::executeReadWriteCommand — Execute a database command that reads and writes 説明 final public function MongoDB\Driver\Manager::executeReadWriteCommand ... in progress, you cannot specify a "readConcern" or "writeConcern" option. This will result in an MongoDB\Driver\Exception\InvalidArgumentException being thrown. Instead, you should set these two options when you create the transaction with MongoDB\Driver\Session::start ... Transaction() . 戻り値 Returns MongoDB\Driver\Cursor on success. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException if the "session" option is used with an associated transaction in combination with a "readConcern" or "writeConcern" optio ... n. Throws MongoDB\Driver\Exception\InvalidArgumentException if the "session" option is used in combination with an unacknowledged write concern. Throws MongoDB\Driver\Exception\Inval ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executereadwritecommand.ht...
MongoDB\Driver\Manager::executeWriteCommand — Execute a database command that w... 7822
MongoDB\Driver\Manager::executeWriteCommand (mongodb >=1.4.0) MongoDB\Driver\Manager::executeWriteCommand — Execute a database command that writes 説明 final public function MongoDB\Driver\Manager::executeWriteCommand ( string $db , MongoDB ... in progress, you cannot specify a "readConcern" or "writeConcern" option. This will result in an MongoDB\Driver\Exception\InvalidArgumentException being thrown. Instead, you should set these two options when you create the transaction with MongoDB\Driver\Session::start ... Transaction() . 戻り値 Returns MongoDB\Driver\Cursor on success. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException if the "session" option is used with an associated transaction in combination with a "readConcern" or "writeConcern" optio ... n. Throws MongoDB\Driver\Exception\InvalidArgumentException if the "session" option is used in combination with an unacknowledged write concern. Throws MongoDB\Driver\Exception\Inval ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executewritecommand.html
MongoDB\Driver\Server::executeReadWriteCommand — Execute a database command tha... 7625
MongoDB\Driver\Server::executeReadWriteCommand (mongodb >=1.4.0) MongoDB\Driver\Server::executeReadWriteCommand — Execute a database command that reads and writes on this server 説明 final public function MongoDB\Driver\Server::executeReadW ... in progress, you cannot specify a "readConcern" or "writeConcern" option. This will result in an MongoDB\Driver\Exception\InvalidArgumentException being thrown. Instead, you should set these two options when you create the transaction with MongoDB\Driver\Session::start ... Transaction() . 戻り値 Returns MongoDB\Driver\Cursor on success. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException if the "session" option is used with an associated transaction in combination with a "readConcern" or "writeConcern" optio ... n. Throws MongoDB\Driver\Exception\InvalidArgumentException if the "session" option is used in combination with an unacknowledged write concern. Throws MongoDB\Driver\Exception\Inval ...
https://man.mtool.work/php/8.3/mongodb-driver-server.executereadwritecommand.htm...
MongoDB\Driver\Server::executeWriteCommand — Execute a database command that wr... 7625
MongoDB\Driver\Server::executeWriteCommand (mongodb >=1.4.0) MongoDB\Driver\Server::executeWriteCommand — Execute a database command that writes on this server 説明 final public function MongoDB\Driver\Server::executeWriteCommand ( string $ ... in progress, you cannot specify a "readConcern" or "writeConcern" option. This will result in an MongoDB\Driver\Exception\InvalidArgumentException being thrown. Instead, you should set these two options when you create the transaction with MongoDB\Driver\Session::start ... Transaction() . 戻り値 Returns MongoDB\Driver\Cursor on success. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException if the "session" option is used with an associated transaction in combination with a "readConcern" or "writeConcern" optio ... n. Throws MongoDB\Driver\Exception\InvalidArgumentException if the "session" option is used in combination with an unacknowledged write concern. Throws MongoDB\Driver\Exception\Inval ...
https://man.mtool.work/php/8.3/mongodb-driver-server.executewritecommand.html
InvalidArgumentException | PHP 8.3 7428
InvalidArgumentException (UI 1.0.3) はじめに クラス概要 class UI\Exception\InvalidArgumentException extends InvalidArgumentException implements Throwable { /* 継承したプロパティ */ protected string $ message = "" ; private string $ string = ...
https://man.mtool.work/php/8.3/class.ui-exception-invalidargumentexception.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT