public function __construct($availableInCache, $notice)
 {
     // only stop the script from executing if the value is NOT available from the cache
     if (!$availableInCache) {
         parent::__construct($notice, 404);
     }
 }
 public function __construct($availableInCache, $url, $key)
 {
     $message = sprintf('Invalid API Response from Endpoint "%s", returned invalid JSON.', $url);
     $this->alertSupport($message, $key);
     // only stop the script from executing if the value is NOT available from the cache
     if (!$availableInCache) {
         parent::__construct($message);
     }
 }
 public function __construct($url, $statusCode, $key)
 {
     $message = sprintf('Unable to connect to the API at Endpoint "%s", returned Status Code of "%s".', $url, $statusCode);
     $this->alertSupport($message, $key);
     parent::__construct($message);
 }