Results of 1 - 10 of about 202 for getMessage (0.001 sec.)
- Exception::getMessage — 例外メッセージを取得する | PHP 8.3 12741
- Exception::getMessage (PHP 5, PHP 7, PHP 8) Exception::getMessage — 例外メッセージを取得する 説明 final public function Exception::getMessage (): string 例外メッセージを返します。 パラメータ この関数にはパラメータはありません。 戻り値 例外メ
... ッセージ文字列を返します。 例 例1 Exception::getMessage() の例 <?php try { throw new Exception ( "Some error message" ); } catch( Exception $e ) { echo $e -> getMessage (); } ?> ... 上の例の出力は、 たとえば以下のようになります。 Some error message 参考 Throwable::getMessage() - メッセージを取得する 他のマニュアルの関連ページ DuckDB Result Verification Django 1.7.1 Linux JM error(3) DuckDB Prepa ...
-
https://man.mtool.work/php/8.3/exception.getmessage.html
- Error::getMessage — エラーメッセージを取得する | PHP 8.3 12527
- Error::getMessage (PHP 7, PHP 8) Error::getMessage — エラーメッセージを取得する 説明 final public function Error::getMessage (): string エラーメッセージを返します。 パラメータ この関数にはパラメータはありません。 戻り値 エラーメッセージを文
... 字列で返します。 例 例1 Error::getMessage() の例 <?php try { throw new Error ( "Some error message" ); } catch( Error $e ) { echo $e -> getMessage (); } ?> 上の例の ... 出力は、 たとえば以下のようになります。 Some error message 参考 Throwable::getMessage() - メッセージを取得する 他のマニュアルの関連ページ DuckDB Result Verification Linux JM vwarn(3) Linux JM verrx(3) Linux J ...
-
https://man.mtool.work/php/8.3/error.getmessage.html
- MongoDB\Driver\WriteError::getMessage — Returns the WriteError's error message ... 10598
- MongoDB\Driver\WriteError::getMessage (mongodb >=1.0.0) MongoDB\Driver\WriteError::getMessage — Returns the WriteError's error message 説明 final public function MongoDB\Driver\WriteError::getMessage (): string パラメータ この関数にはパラメ
... 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\WriteError::getMessage() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWrite ; $bulk -> insert ([ '_id' => ... } catch( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteErrors ()[ 0 ]-> getMessage ()); } ?> 上の例の出力は、 たとえば以下のようになります。 string(70) "E11000 duplicate key error index: db.collection.$_id ...
-
https://man.mtool.work/php/8.3/mongodb-driver-writeerror.getmessage.html
- Throwable::getMessage — メッセージを取得する | PHP 8.3 10491
- Throwable::getMessage (PHP 7, PHP 8) Throwable::getMessage — メッセージを取得する 説明 public function Throwable::getMessage (): string スローされたオブジェクトに関連づけられたメッセージを返します。 パラメータ この関数にはパラメータはありま
... せん。 戻り値 スローされたオブジェクトに関連づけられたメッセージを返します。 参考 Exception::getMessage() - 例外メッセージを取得する ...
-
https://man.mtool.work/php/8.3/throwable.getmessage.html
- MongoDB\Driver\WriteConcernError::getMessage — Returns the WriteConcernError's ... 10384
- MongoDB\Driver\WriteConcernError::getMessage (mongodb >=1.0.0) MongoDB\Driver\WriteConcernError::getMessage — Returns the WriteConcernError's error message 説明 final public function MongoDB\Driver\WriteConcernError::getMessage (): string パ
... ows MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\WriteConcernError::getMessage() example <?php $manager = new MongoDB\Driver\Manager ( "mongodb://rs1.example.com,rs2.example.com/?replicaSet=myReplicaSe ... } catch( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteConcernError ()-> getMessage ()); } ?> 上の例の出力は、 たとえば以下のようになります。 string(33) "waiting for replication timed out" 参考 » Write Conc ...
-
https://man.mtool.work/php/8.3/mongodb-driver-writeconcernerror.getmessage.html
- 基本的な VarnishAdmin の使用法 | PHP 8.3 7930
- 基本的な VarnishAdmin の使用法 禁止機能の簡単な使用法を示します。 例1 URL を禁止する <?php $args = array( VARNISH_CONFIG_HOST => "::1" , VARNISH_CONFIG_PORT => 6082 , VARNISH_CONFIG_SECRET => "5174826b-8595-4958-aa7a-0609632ad7ca" , VARNISH
... $va -> connect ()) { throw new VarnishException ( "Connection failed\n" ); } } catch ( VarnishException $e ) { echo $e -> getMessage (); exit( 3 ); } try { if(! $va -> auth ()) { throw new VarnishException ( "Auth failed\n" ); } } catch ( VarnishException ... $e ) { echo $e -> getMessage (); exit( 3 ); } try { $status = $va -> ban ( 'req.url ~ "^/$"' ); if ( VARNISH_STATUS_OK != $status ) { throw new Varnish ... Exception ( "Ban method returned $status status\n" ); } } catch ( VarnishException $e ) { echo $e -> getMessage (); exit( 3 ); } exit( 0 ); ?> 他のマニュアルの関連ページ Docker status ...
-
https://man.mtool.work/php/8.3/varnish.example.admin.html
- Yaf_Dispatcher::catchException — 例外のキャッチのオン/オフを切り替える | PHP 8.... 7072
- Yaf_Dispatcher::catchException (Yaf >=1.0.0) Yaf_Dispatcher::catchException — 例外のキャッチのオン/オフを切り替える 説明 public function Yaf_Dispatcher::catchException ( bool $flag = ? ): Yaf_Dispatcher application.dispatcher.throwException
... e YAF_ERR_NOTFOUND_CONTROLLER : case YAF_ERR_NOTFOUND_ACTION : case YAF_ERR_NOTFOUND_VIEW : echo 404 , ":" , $exception -> getMessage (); break; default : $message = $exception -> getMessage (); echo 0 , ":" , $exception -> getMessage (); break; } } } ?> 上 ...
-
https://man.mtool.work/php/8.3/yaf-dispatcher.catchexception.html
- finally | PHP 8.3 6965
- finally (PHP 5 >= 5.5.0, PHP 7, PHP 8) catch ブロックの後、またはその代わりに、 finally ブロックも指定できます。 finally ブロックの中に書いたコードは、 return 文や yield 文に到達した場合や、 Throwable エラーがキャッチされなかったり、 スロー
... ) { return 1 / $x ; } try { echo inverse ( 5 ) . "\n" ; } catch ( DivisionByZeroError $e ) { echo 'Caught error: ' , $e -> getMessage (), "\n" ; } finally { echo "First finally.\n" ; } try { echo inverse ( 0 ) . "\n" ; } catch ( DivisionByZeroError $e ) { ... echo 'Caught error: ' , $e -> getMessage (), "\n" ; } finally { echo "Second finally.\n" ; } // 実行は継続される echo "Hello World\n" ; 上の例の PHP 8 での出力は、 ... new Exception ( message : 'First' , previous : new Exception ( 'Second' )); } } catch ( Exception $e ) { var_dump ( $e -> getMessage (), $e -> getPrevious ()-> getMessage (), $e -> getPrevious ()-> getPrevious ()-> getMessage (), $e -> getPrevious ()-> ge ...
-
https://man.mtool.work/php/8.3/control-structures.finally.html
- The MongoDB\Driver\WriteConcernError class | PHP 8.3 6751
- The MongoDB\Driver\WriteConcernError class (mongodb >=1.0.0) はじめに The MongoDB\Driver\WriteConcernError class encapsulates information about a write concern error and may be returned by MongoDB\Driver\WriteResult::getWriteConcernError()
... fo ; /* メソッド */ final public function getCode (): int final public function getInfo (): ? object final public function getMessage (): string } プロパティ message The error message. code The error code. info Additional information for the error, or null ... \Driver\WriteConcernError::getInfo — Returns metadata document for the WriteConcernError MongoDB\Driver\WriteConcernError::getMessage — Returns the WriteConcernError's error message 他のマニュアルの関連ページ Linux JM error(3) ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-writeconcernerror.html
- ZMQPoll::poll — Poll the items | PHP 8.3 6751
- ZMQPoll::poll (PECL zmq >= 0.5.0) ZMQPoll::poll — Poll the items 説明 public function ZMQPoll::poll ( array &$readable , array &$writable , int $timeout = -1 ): int Polls the items in the current poll set. The readable and writable items ar
... rror ) { echo "Error polling object " . $error . "\n" ; } } } catch ( ZMQPollException $e ) { echo "poll failed: " . $e -> getMessage () . "\n" ; } if ( $events > 0 ) { /* Loop through readable objects and recv messages */ foreach ( $readable as $r ) { try ... { echo "Received message: " . $r -> recv () . "\n" ; } catch ( ZMQException $e ) { echo "recv failed: " . $e -> getMessage () . "\n" ; } } /* Loop through writable and send back messages */ foreach ( $writable as $w ) { try { $w -> send ( "Got i ... t!" ); } catch ( ZMQException $e ) { echo "send failed: " . $e -> getMessage () . "\n" ; } } } } ?> 他のマニュアルの関連ページ Linux JM recv(2) Python sockets ...
-
https://man.mtool.work/php/8.3/zmqpoll.poll.html