function PEAR::throwError in Flickr API 5
Simpler form of raiseError with fewer options. In most cases message, code and userinfo are enough.
Parameters
string $message:
File
- phpFlickr/
PEAR/ PEAR.php, line 586
Class
- PEAR
- Base class for other PEAR classes. Provides rudimentary emulation of destructors.
Code
function &throwError($message = null, $code = null, $userinfo = null) {
if (isset($this) && is_a($this, 'PEAR')) {
$a =& $this
->raiseError($message, $code, null, null, $userinfo);
return $a;
}
else {
$a =& PEAR::raiseError($message, $code, null, null, $userinfo);
return $a;
}
}