Skip to content
This repository has been archived by the owner on Apr 29, 2018. It is now read-only.

Commit

Permalink
remove unused data
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Giegerich committed Mar 20, 2012
1 parent e629fa3 commit bd327e1
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions GiegQuote.php
Expand Up @@ -209,7 +209,7 @@ private static function checkUrl($url) {
}

/*
---- Curl
---- cURL
*/
private static $curl = null;
private static $response = null;
Expand Down Expand Up @@ -247,20 +247,4 @@ private function setOptions() {
self::$curl_options = array();
}
}
}

class GiegQuoteException extends Exception {
public $url;

function __construct($response) {
$this->url = $response->url;
parent::__construct($response->message);
}

public function __toString() {
$style = 'style="font-family: Helvetica;"';
$info = "<p $style>Something went wrong with the last request to the Quote API:</p>";
$info .= "<h2 $style>Details</h2><strong $style>Message</strong>: " . $this->message . '<br />';
return $info;
}
}

0 comments on commit bd327e1

Please sign in to comment.