From 25dec3342ca9be55baec3ae29d4b4749db3f15d0 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 15 May 2014 22:34:35 +0200 Subject: [PATCH] Continued: - added new (and missing) exception FileIsEmptyException - renamed 'io' -> 'file_directory'. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../{io => file_directory}/.htaccess | 0 .../class_DirPointerNotOpenedException.php | 0 .../class_FileIoException.php | 0 .../class_FileIsEmptyException.php | 39 +++++++++++++++++++ .../class_FileReadProtectedException.php | 0 .../class_InvalidDataLengthException.php | 0 .../class_InvalidMD5ChecksumException.php | 0 .../class_InvalidResourceException.php | 0 .../class_PathIsEmptyException.php | 0 .../class_PathIsNoDirectoryException.php | 0 .../class_PathReadProtectedException.php | 0 11 files changed, 39 insertions(+) rename inc/classes/exceptions/{io => file_directory}/.htaccess (100%) rename inc/classes/exceptions/{io => file_directory}/class_DirPointerNotOpenedException.php (100%) rename inc/classes/exceptions/{io => file_directory}/class_FileIoException.php (100%) create mode 100644 inc/classes/exceptions/file_directory/class_FileIsEmptyException.php rename inc/classes/exceptions/{io => file_directory}/class_FileReadProtectedException.php (100%) rename inc/classes/exceptions/{io => file_directory}/class_InvalidDataLengthException.php (100%) rename inc/classes/exceptions/{io => file_directory}/class_InvalidMD5ChecksumException.php (100%) rename inc/classes/exceptions/{io => file_directory}/class_InvalidResourceException.php (100%) rename inc/classes/exceptions/{io => file_directory}/class_PathIsEmptyException.php (100%) rename inc/classes/exceptions/{io => file_directory}/class_PathIsNoDirectoryException.php (100%) rename inc/classes/exceptions/{io => file_directory}/class_PathReadProtectedException.php (100%) diff --git a/inc/classes/exceptions/io/.htaccess b/inc/classes/exceptions/file_directory/.htaccess similarity index 100% rename from inc/classes/exceptions/io/.htaccess rename to inc/classes/exceptions/file_directory/.htaccess diff --git a/inc/classes/exceptions/io/class_DirPointerNotOpenedException.php b/inc/classes/exceptions/file_directory/class_DirPointerNotOpenedException.php similarity index 100% rename from inc/classes/exceptions/io/class_DirPointerNotOpenedException.php rename to inc/classes/exceptions/file_directory/class_DirPointerNotOpenedException.php diff --git a/inc/classes/exceptions/io/class_FileIoException.php b/inc/classes/exceptions/file_directory/class_FileIoException.php similarity index 100% rename from inc/classes/exceptions/io/class_FileIoException.php rename to inc/classes/exceptions/file_directory/class_FileIoException.php diff --git a/inc/classes/exceptions/file_directory/class_FileIsEmptyException.php b/inc/classes/exceptions/file_directory/class_FileIsEmptyException.php new file mode 100644 index 00000000..48947b4c --- /dev/null +++ b/inc/classes/exceptions/file_directory/class_FileIsEmptyException.php @@ -0,0 +1,39 @@ + + * @version 0.0.0 + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2013 Core Developer Team + * @license GNU GPL 3.0 or any newer version + * @link http://www.shipsimu.org + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +class FileIsEmptyException extends FrameworkException { + /** + * The constructor + * + * @param $fqfn Ignored + * @param $code Code number for the exception + * @return void + */ + public function __construct ($fqfn, $code) { + // Call parent constructor + parent::__construct('No file name provided.', $code); + } +} + +// [EOF] +?> diff --git a/inc/classes/exceptions/io/class_FileReadProtectedException.php b/inc/classes/exceptions/file_directory/class_FileReadProtectedException.php similarity index 100% rename from inc/classes/exceptions/io/class_FileReadProtectedException.php rename to inc/classes/exceptions/file_directory/class_FileReadProtectedException.php diff --git a/inc/classes/exceptions/io/class_InvalidDataLengthException.php b/inc/classes/exceptions/file_directory/class_InvalidDataLengthException.php similarity index 100% rename from inc/classes/exceptions/io/class_InvalidDataLengthException.php rename to inc/classes/exceptions/file_directory/class_InvalidDataLengthException.php diff --git a/inc/classes/exceptions/io/class_InvalidMD5ChecksumException.php b/inc/classes/exceptions/file_directory/class_InvalidMD5ChecksumException.php similarity index 100% rename from inc/classes/exceptions/io/class_InvalidMD5ChecksumException.php rename to inc/classes/exceptions/file_directory/class_InvalidMD5ChecksumException.php diff --git a/inc/classes/exceptions/io/class_InvalidResourceException.php b/inc/classes/exceptions/file_directory/class_InvalidResourceException.php similarity index 100% rename from inc/classes/exceptions/io/class_InvalidResourceException.php rename to inc/classes/exceptions/file_directory/class_InvalidResourceException.php diff --git a/inc/classes/exceptions/io/class_PathIsEmptyException.php b/inc/classes/exceptions/file_directory/class_PathIsEmptyException.php similarity index 100% rename from inc/classes/exceptions/io/class_PathIsEmptyException.php rename to inc/classes/exceptions/file_directory/class_PathIsEmptyException.php diff --git a/inc/classes/exceptions/io/class_PathIsNoDirectoryException.php b/inc/classes/exceptions/file_directory/class_PathIsNoDirectoryException.php similarity index 100% rename from inc/classes/exceptions/io/class_PathIsNoDirectoryException.php rename to inc/classes/exceptions/file_directory/class_PathIsNoDirectoryException.php diff --git a/inc/classes/exceptions/io/class_PathReadProtectedException.php b/inc/classes/exceptions/file_directory/class_PathReadProtectedException.php similarity index 100% rename from inc/classes/exceptions/io/class_PathReadProtectedException.php rename to inc/classes/exceptions/file_directory/class_PathReadProtectedException.php -- 2.39.2