X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Ffile_directories%2Ftext%2Fclass_BaseTextFile.php;fp=framework%2Fmain%2Fclasses%2Ffile_directories%2Ftext%2Fclass_BaseTextFile.php;h=bd5ba5463cf8204d94e53c1a311ea4e85518245f;hp=57d43006925975d36d29b7b09a07b25b01312bca;hb=c20af2b1b05f92040a8cfabfb1d0c5cd2771f7c5;hpb=5c9360c9139b761d2b09351930c1e843d33af240 diff --git a/framework/main/classes/file_directories/text/class_BaseTextFile.php b/framework/main/classes/file_directories/text/class_BaseTextFile.php index 57d43006..bd5ba546 100644 --- a/framework/main/classes/file_directories/text/class_BaseTextFile.php +++ b/framework/main/classes/file_directories/text/class_BaseTextFile.php @@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Filesystem\File; // Import framework stuff use Org\Mxchange\CoreFramework\Filesystem\File\BaseAbstractFile; +use Org\Mxchange\CoreFramework\Generic\FrameworkInterface; use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException; // Import SPL stuff @@ -50,7 +51,7 @@ abstract class BaseTextFile extends BaseAbstractFile { */ public function determineSeekPosition () { // Not possible in text files - throw new UnsupportedOperationException([$this, __FUNCTION__], self::EXCEPTION_UNSPPORTED_OPERATION); + throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION); } /** @@ -63,7 +64,7 @@ abstract class BaseTextFile extends BaseAbstractFile { public function seek (int $offset, int $whence = SEEK_SET) { // Not possible in text files self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BASE-TEXT-FILE: offset=' . $offset . ',whence=' . $whence); - throw new UnsupportedOperationException([$this, __FUNCTION__], self::EXCEPTION_UNSPPORTED_OPERATION); + throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION); } /** @@ -80,7 +81,7 @@ abstract class BaseTextFile extends BaseAbstractFile { * There is no need to read/write the whole file. */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BASE-TEXT-FILE: infoInstance=' . $infoInstance); - throw new UnsupportedOperationException([$this, __FUNCTION__], self::EXCEPTION_UNSPPORTED_OPERATION); + throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION); } }