Chris@17: url = $url; Chris@17: $this->data = $data; Chris@17: parent::__construct($message, 0, $previous); Chris@17: } Chris@17: Chris@17: /** Chris@17: * Gets the URL of the resource which caused the exception. Chris@17: * Chris@17: * @return string Chris@17: * The URL of the resource. Chris@17: */ Chris@17: public function getUrl() { Chris@17: return $this->url; Chris@17: } Chris@17: Chris@17: /** Chris@17: * Gets the raw resource data, if available. Chris@17: * Chris@17: * @return array Chris@17: * The resource data. Chris@17: */ Chris@17: public function getData() { Chris@17: return $this->data; Chris@17: } Chris@17: Chris@17: }