private static function __throwErrorWhenInvalid($url) { if (!logger::__validateURL($url)) { throw new Exception('URL code was invalid: URL = \'' . $url . '\''); } }