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()



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.


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


Display the error message if it exists

$feed = new SimplePie();
if ($feed->error())
	echo $feed->error();

See Also

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