You are here

function PEAR_Error::getBacktrace in Flickr API 5

Get the call backtrace from where the error was generated. Supported with PHP 4.3.0 or newer.

@access public

Parameters

int $frame (optional) what frame to fetch:

Return value

array Backtrace, or NULL if not available.

File

phpFlickr/PEAR/PEAR.php, line 1025

Class

PEAR_Error
Standard PEAR error class for PHP 4

Code

function getBacktrace($frame = null) {
  if (defined('PEAR_IGNORE_BACKTRACE')) {
    return null;
  }
  if ($frame === null) {
    return $this->backtrace;
  }
  return $this->backtrace[$frame];
}