error()
Submitted by lanttis on 2 July, 2004 - 11:10.
Description
string error (void)
Returns a formatted error string for either printing or storing to a log. This error is different depending if debugging has been turned on on the system. If debuging is on, the error is more descriptive with the exact explanation from YAZ accompanied with an error code, whereas it when debuging is turned off is only an error notice with the error code.
Examples
Example of how to trap an error
... initialize and perform ...
if ($search->errno()) {
custom_error_processor($search->error());
}
... end ...
There is no function called custom_error_processor(); it only represents some arbitrary function that can accept an error and process it meaningfully.

