SimplePie 1.5 is now available!

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 07:11 by rmccue