PiPHP\GPIO\FileSystem\FileSystem::exceptionIfFalse PHP Метод

exceptionIfFalse() приватный Метод

private exceptionIfFalse ( $result )
    private function exceptionIfFalse($result)
    {
        if (false === $result) {
            $errorDetails = error_get_last();
            throw new \RuntimeException($errorDetails['message']);
        }
    }