for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare( strict_types = 1 );
namespace FileFetcher;
/**
* @since 3.0
*
* @licence BSD-3-Clause
* @author Jeroen De Dauw < [email protected] >
*/
class FileFetchingException extends \RuntimeException {
private $fileUrl;
public function __construct( string $fileUrl, string $message = null, \Exception $previous = null ) {
$this->fileUrl = $fileUrl;
parent::__construct(
$message ?: 'Could not fetch file: ' . $fileUrl,
0,
$previous
);
}
public function getFileUrl(): string {
return $this->fileUrl;