From d574e5fcab8116f397158808780f8505aa8faaad Mon Sep 17 00:00:00 2001 From: Phansys Date: Fri, 10 May 2013 22:37:30 -0300 Subject: [PATCH] Added FilesystemException to handle errors on local filesystem. --- .../Downloader/FilesystemException.php | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/Composer/Downloader/FilesystemException.php diff --git a/src/Composer/Downloader/FilesystemException.php b/src/Composer/Downloader/FilesystemException.php new file mode 100644 index 000000000..9829b7d4a --- /dev/null +++ b/src/Composer/Downloader/FilesystemException.php @@ -0,0 +1,26 @@ + + * Jordi Boggiano + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer\Downloader; + +/** + * Exception thrown when issues exist on local filesystem + * + * @author Javier Spagnoletti + */ +class FilesystemException extends \Exception +{ + public function __construct($message = null, $code = null, \Exception $previous = null) + { + parent::__construct("Filesystem exception: \n".$message, $code, $previous); + } +}