SimplePie 1.3.1 is now available. Upgrade now!

SimplePie Documentation.  Learn how to use this thing.  It's way better than going to school.

You are here: Documentation » API Reference » SimplePie » error()

error()

Description

class SimplePie {
	error ()
}

If a SimplePie error was thrown, you can display it here. If there was a PHP error, SimplePie doesn't do anything about it.

Availability

  • Available since SimplePie 1.0.
  • Previously existed as error (property) since Beta 3.

Examples

Display the error message if it exists

$feed = new SimplePie();
$feed->set_feed_url('http://simplepie.bob');
$feed->init();
$feed->handle_content_type();
 
if ($feed->error())
{
	echo $feed->error();
}

See Also


reference/simplepie/error.txt · Last modified: 2011/10/19 00:11 by rmccue