Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QSystemError Class Reference

#include <qsystemerror_p.h>

+ Collaboration diagram for QSystemError:

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
 
constexpr bool ok () const noexcept
 

Static Public Member Functions

static constexpr QSystemError stdError (int error)
 
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
 

Detailed Description

Definition at line 23 of file qsystemerror_p.h.

Member Enumeration Documentation

◆ ErrorScope

Enumerator
NoError 
StandardLibraryError 
NativeError 

Definition at line 26 of file qsystemerror_p.h.

Constructor & Destructor Documentation

◆ QSystemError() [1/2]

QSystemError::QSystemError ( int error,
ErrorScope scope )
inlineexplicitconstexpr

Definition at line 33 of file qsystemerror_p.h.

References errorCode, and errorScope.

Referenced by stdError().

+ Here is the caller graph for this function:

◆ QSystemError() [2/2]

QSystemError::QSystemError ( )
constexprdefault

Member Function Documentation

◆ error()

int QSystemError::error ( ) const
inlineconstexpr

Definition at line 41 of file qsystemerror_p.h.

References errorCode.

◆ ok()

bool QSystemError::ok ( ) const
inlineconstexprnoexcept

Definition at line 43 of file qsystemerror_p.h.

References errorScope, and NoError.

◆ scope()

ErrorScope QSystemError::scope ( ) const
inlineconstexpr

Definition at line 40 of file qsystemerror_p.h.

References errorScope.

◆ stdError()

static constexpr QSystemError QSystemError::stdError ( int error)
inlinestaticconstexpr

Definition at line 44 of file qsystemerror_p.h.

References QSystemError(), and StandardLibraryError.

+ Here is the call graph for this function:

◆ stdString()

QString QSystemError::stdString ( int errorCode = -1)
static

Definition at line 126 of file qsystemerror.cpp.

◆ string()

QString QSystemError::string ( ErrorScope errorScope,
int errorCode )
static

Definition at line 109 of file qsystemerror.cpp.

◆ toString()

QString QSystemError::toString ( ) const
inline

Definition at line 39 of file qsystemerror_p.h.

References errorCode, and errorScope.

Member Data Documentation

◆ errorCode

int QSystemError::errorCode = 0

Definition at line 59 of file qsystemerror_p.h.

Referenced by QSystemError(), error(), and toString().

◆ errorScope

ErrorScope QSystemError::errorScope = NoError

Definition at line 60 of file qsystemerror_p.h.

Referenced by QSystemError(), ok(), scope(), and toString().


The documentation for this class was generated from the following files: