SAMConnection->errnoとは? わかりやすく解説

Weblio 辞書 > コンピュータ > PHP関数リファレンス > SAMConnection->errnoの意味・解説 

SAMConnection->errno

(No version information available, might be only in CVS)
SAMConnection->errno — 最後に実行した SAM 操作のエラーコードを表す数値を含む

説明

class SAMConnection {
int errno
} errno() には、この接続で最後に実行された SAM 操作のエラーコードを表す数値が含まれます。 直近の操作が正常に終了した場合は、このプロパティは 0 となります。

返り値

ゼロより大きい整数値は、この接続の直近のエラーの型を表します。 ゼロの場合は、この接続の直近の操作が正常に終了したことを表します。

参考

SAMConnection->error()

例 1977. Using the error number and description properties
<?php
$conn = new SAMConnection();
$conn->connect(SAM_WMQ, array(SAM_HOST => 'localhost', SAM_PORT => 1506));
$msg = new SAMMessage('This is a simple text item');
if (!$conn->send('topic://test', $msg)) {
   // The Send failed!
   echo "Send failed ($conn->errno) $conn->error";
}
?>





英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「SAMConnection->errno」の関連用語

SAMConnection->errnoのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SAMConnection->errnoのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
PHP Documentation GroupPHP Documentation Group
Copyright © 1997 - 2025 by the PHP Documentation Group.

©2025 GRAS Group, Inc.RSS