Error handlingAll SAMConnection methods that provide access to messaging operations return FALSE if an error occurred in processing the request. In addition the SAMConnection object has two properties, "errno" and "error", that provide respectively the error number and text description of the last error to occur on the connection. 
 Пример #1 Handling an error from a method that returns no result 
<?php
 Пример #2 Handling an error from a method that returns a result 
<?php | 
||