QSafeFileException Class

class SafeRenderer::QSafeFileException

An instance of QSafeFileException is thrown in case of an exception. More...

Header: #include <QSafeFileException>
Since: QtSafeRenderer 2.1
Inherits: SafeRenderer::QSafeException

Public Types

enum FileException { FailureToOpen, SeekError, ReadError, OutOfBoundsError, WriteError }

Detailed Description

Instance of this class is thrown when an exception occurs related to safe file.

Member Type Documentation

enum QSafeFileException::FileException

This enum describes the id of a thrown safe file exception.

SafeRenderer::QSafeFileException::FailureToOpen0Could not open the file for reading.
SafeRenderer::QSafeFileException::SeekError1Seek has failed on the opened file. For example, a filesystem error or file being a pipe may have caused the error.
SafeRenderer::QSafeFileException::ReadError2The requested number of bytes could not be read from the opened file.
SafeRenderer::QSafeFileException::OutOfBoundsError3The requested index is out of bounds.
SafeRenderer::QSafeFileException::WriteError4The requested value could not be written to the file.

Available under certain Qt licenses.
Find out more.