![]() |
Qt 6.x
The Qt SDK
|
#include <qsystemerror_p.h>
Public Types | |
enum | ErrorScope { NoError , StandardLibraryError , NativeError } |
Public Member Functions | |
constexpr | QSystemError (int error, ErrorScope scope) |
constexpr | QSystemError ()=default |
QString | toString () const |
constexpr ErrorScope | scope () const |
constexpr int | error () const |
Static Public Member Functions | |
static Q_CORE_EXPORT QString | string (ErrorScope errorScope, int errorCode) |
static Q_CORE_EXPORT QString | stdString (int errorCode=-1) |
Public Attributes | |
int | errorCode = 0 |
ErrorScope | errorScope = NoError |
Definition at line 23 of file qsystemerror_p.h.
Enumerator | |
---|---|
NoError | |
StandardLibraryError | |
NativeError |
Definition at line 26 of file qsystemerror_p.h.
|
inlineexplicitconstexpr |
Definition at line 33 of file qsystemerror_p.h.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 41 of file qsystemerror_p.h.
References errorCode.
|
inlineconstexpr |
Definition at line 40 of file qsystemerror_p.h.
References errorScope.
|
static |
Definition at line 126 of file qsystemerror.cpp.
References errorCode, and standardLibraryErrorString().
Referenced by QFSFileEnginePrivate::closeFdFh(), QFSFileEnginePrivate::flushFh(), QResourceFileEngine::open(), QFSFileEnginePrivate::openFd(), QFSFileEnginePrivate::openFh(), QFSFileEnginePrivate::readFdFh(), QFSFileEnginePrivate::readLineFdFh(), QFSFileEnginePrivate::seekFdFh(), and QFSFileEnginePrivate::writeFdFh().
|
static |
Definition at line 109 of file qsystemerror.cpp.
References errorCode, errorScope, NativeError, NoError, Q_FALLTHROUGH, qWarning, StandardLibraryError, and standardLibraryErrorString().
|
inline |
Definition at line 39 of file qsystemerror_p.h.
References errorCode, and errorScope.
Referenced by QFile::rename().
int QSystemError::errorCode = 0 |
Definition at line 52 of file qsystemerror_p.h.
Referenced by error(), stdString(), string(), and toString().
ErrorScope QSystemError::errorScope = NoError |
Definition at line 53 of file qsystemerror_p.h.
Referenced by scope(), string(), and toString().