« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 42 for UnexpectedValueException (0.001 sec.)
The MongoDB\Driver\Exception\UnexpectedValueException class | PHP 8.3 12975
The MongoDB\Driver\Exception\UnexpectedValueException class (mongodb >= 1.0.0) はじめに Thrown when the driver encounters an unexpected value (e.g. during BSON serialization or deserialization). クラス概要 class MongoDB\Driver\Exception\UnexpectedValueException ... xpectedValueException extends UnexpectedValueException implements MongoDB\Driver\Exception\Exception { /* 継承したプロパティ */ protected string $ message = "" ; private string ...
https://man.mtool.work/php/8.3/class.mongodb-driver-exception-unexpectedvalueexc...
例外 | PHP 8.3 12201
例外 目次 BadFunctionCallException BadMethodCallException DomainException InvalidArgumentException LengthException LogicException OutOfBoundsException OutOfRangeException OverflowException RangeException RuntimeException UnderflowException ... geException RuntimeException (extends Exception ) OutOfBoundsException OverflowException RangeException UnderflowException UnexpectedValueException 参考 定義済みの例外 ...
https://man.mtool.work/php/8.3/spl.exceptions.html
MongoDB\BSON\toPHP — Returns the PHP representation of a BSON value | PHP 8.3 10652
MongoDB\BSON\toPHP (mongodb >=1.0.0) MongoDB\BSON\toPHP — Returns the PHP representation of a BSON value 警告 This function has been DEPRECATED as of extension version 1.20.0 and was removed in 2.0. Applications should use MongoDB\BSON\Docu ... in the type map cannot be instantiated or does not implement MongoDB\BSON\Unserializable . Throws MongoDB\Driver\Exception\UnexpectedValueException if the input did not contain exactly one BSON document. Possible reasons include, but are not limited to, invalid BSON, ex ... ng to the debug log, but instead will create an object representing this type. PECL mongodb 1.3.2 MongoDB\Driver\Exception\UnexpectedValueException is no longer thrown if the input contains an unsupported, deprecated BSON type. Such types will be ignored (as they were i ... h the extension will now log a warning to the debug log (see: mongodb.debug ). PECL mongodb 1.3.0 MongoDB\Driver\Exception\UnexpectedValueException is thrown if the input contains an unsupported, deprecated BSON type. Previously, such types were ignored. 例 例1 MongoDB\ ...
https://man.mtool.work/php/8.3/function.mongodb.bson-tophp.html
MongoDB Exception Class Tree | PHP 8.3 10652
MongoDB Exception Class Tree The class hierarchy for MongoDB exceptions is modeled after that of the SPL Exceptions . Base classes extend their SPL counterpart and all exception classes in the extension implement the MongoDB\Driver\Exceptio ... Exception ) MongoDB\Driver\Exception\InvalidArgumentException (extends InvalidArgumentException ) MongoDB\Driver\Exception\UnexpectedValueException (extends UnexpectedValueException ) MongoDB\Driver\Exception\RuntimeException (extends RuntimeException ) MongoDB\Driver\E ...
https://man.mtool.work/php/8.3/mongodb.exceptions.tree.html
UnexpectedValueException クラス | PHP 8.3 9692
UnexpectedValueException クラス (PHP 5 >= 5.1.0, PHP 7, PHP 8) はじめに いくつかの値のセットに一致しない値であった際にスローされる例外です。 これが発生する例としては、ある関数が別の関数をコールしていて、 その関数の戻り値が特定の型や値である ... (そして計算やバッファ関連のエラーがない) ことを想定している場合があります。 クラス概要 class UnexpectedValueException extends RuntimeException { /* 継承したプロパティ */ protected string $ message = "" ; private string $ string = "" ; prote ...
https://man.mtool.work/php/8.3/class.unexpectedvalueexception.html
PharData::__construct — 実行可能でない tar あるいは zip アーカイブオブジェクト... 9692
PharData::__construct (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 2.0.0) PharData::__construct — 実行可能でない tar あるいは zip アーカイブオブジェクトを作成する 説明 public function PharData::__construct ( string $filename , int $flags = F ... ト定数 のいずれか。 エラー / 例外 2 度コールされた場合に BadMethodCallException 、 phar アーカイブのオープンに失敗した場合に UnexpectedValueException をスローします。 例 例1 PharData::__construct() の例 <?php try { $p = new PharData ( '/path/to/my.tar' , Phar :: CURRENT_A ... S_FILEINFO | Phar :: KEY_AS_FILENAME ); } catch ( UnexpectedValueException $e ) { die( 'Could not open my.tar' ); } catch ( BadMethodCallException $e ) { echo 'technically, this cannot happen' ; } ...
https://man.mtool.work/php/8.3/phardata.construct.html
Phar::__construct — Phar アーカイブオブジェクトを作成する | PHP 8.3 9491
Phar::__construct (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.0.0) Phar::__construct — Phar アーカイブオブジェクトを作成する 説明 public function Phar::__construct ( string $filename , int $flags = FilesystemIterator::SKIP_DOTS | Filesyst ... 使うエイリアス。 エラー / 例外 二度コールされた場合に BadMethodCallException 、 phar アーカイブがオープンできなかった場合に UnexpectedValueException がスローされます。 例 例1 Phar::__construct() の例 <?php try { $p = new Phar ( '/path/to/my.phar' , FilesystemIterator :: ... CURRENT_AS_FILEINFO | FilesystemIterator :: KEY_AS_FILENAME , 'my.phar' ); } catch ( UnexpectedValueException $e ) { die( 'my.phar をオープンできません' ); } catch ( BadMethodCallException $e ) { echo 'これはありえません' ; } // これ ...
https://man.mtool.work/php/8.3/phar.construct.html
Exception classes | PHP 8.3 8330
Exception classes 目次 MongoDB\Driver\Exception\AuthenticationException MongoDB\Driver\Exception\BulkWriteException MongoDB\Driver\Exception\BulkWriteCommandException MongoDB\Driver\Exception\CommandException MongoDB\Driver\Exception\Connec ... xception MongoDB\Driver\Exception\ServerException MongoDB\Driver\Exception\SSLConnectionException MongoDB\Driver\Exception\UnexpectedValueException MongoDB\Driver\Exception\WriteException Class Tree ...
https://man.mtool.work/php/8.3/mongodb.exceptions.html
Serialization and deserialization of PHP variables into MongoDB | PHP 8.3 8330
Serialization and deserialization of PHP variables into MongoDB This document discusses how compound structures (i.e. documents, arrays, and objects) are converted between BSON and PHP values. Serialization to BSON Arrays If an array is a p ... as a document field value. Attempting to serialize such an object as a root document will throw a MongoDB\Driver\Exception\UnexpectedValueException If an object is of an unknown class implementing the MongoDB\BSON\Type interface, then throw a MongoDB\Driver\Exception\Un ... ent. If MongoDB\BSON\Serializable::bsonSerialize() did not return an array or stdClass , throw an MongoDB\Driver\Exception\UnexpectedValueException exception. If an object is of a class that implements the MongoDB\BSON\Persistable interface (which implies MongoDB\BSON\S ... rializable { public $foo = 42 ; public function bsonSerialize (): self { return $this ; } } // => MongoDB\Driver\Exception\UnexpectedValueException("bsonSerialize() did not return an array or stdClass") class AnotherClass3 implements MongoDB\BSON\Serializable { private ...
https://man.mtool.work/php/8.3/mongodb.persistence.html
Standard PHP Library (SPL) | PHP 8.3 8144
Standard PHP Library (SPL) はじめに The Standard PHP Library (SPL) 拡張モジュールでは、 よくある問題を解決するためのインターフェイスやクラスを定義しています。 この拡張モジュールは、さまざまなデータ構造や汎用的な例外、イテレータ、 オブジェク ... xception — RangeException クラス RuntimeException — RuntimeException クラス UnderflowException — UnderflowException クラス UnexpectedValueException — UnexpectedValueException クラス イテレータ AppendIterator — AppendIterator クラス ArrayIterator — ArrayIterator クラス C ...
https://man.mtool.work/php/8.3/book.spl.html
PREV 1 2 3 4 5 NEXT