public function __construct($missing) { if (!is_array($missing)) { $missing = array($missing); } $this->missing = $missing; $required = join(', ', $this->missing); parent::__construct("OAuthDataMissing: Response was expected to contain: {$required}"); }
public function __construct($error, $url) { // record specific details of the API exception for processing $this->url = $url; $this->type = $error['type']; $this->status = array_key_exists('status', $error) ? $error['status'] : ''; $this->message = $error['message']; $this->documentation_url = $error['documentation_url']; parent::__construct($this->message); }
public function __construct($uri) { $this->uri = $uri; parent::__construct("Request for {$uri} did not respond properly."); }
public function __construct($object, $value) { $this->object = $object; $this->value = $value; parent::__construct("Resource \"{$value}\" is not implemented on this resource."); }
public function __construct($type, $message) { $this->type = $type; $this->message = $message; parent::__construct("{$type}: {$message}"); }
public function __construct($object) { $this->object = $object; parent::__construct("This method is not implemented by the current resource."); }