1#ifndef QX_SYSTEMERROR_H
2#define QX_SYSTEMERROR_H
5#include "qx/core/qx_core_export.h"
21class QX_CORE_EXPORT
SystemError final :
public AbstractError<"Qx::SystemError", 2>
35 static inline const QString UKNOWN_CAUSE = u
"An unknown error occured"_s;
40 OriginalFormat mOriginalFormat;
57 static SystemError fromErrno(
int err, QString aError =
"System Error");
62 quint32 deriveValue()
const override;
63 Severity deriveSeverity()
const override;
64 QString derivePrimary()
const override;
65 QString deriveSecondary()
const override;
69 OriginalFormat originalFormat()
const;
70 quint32 value()
const;
71 QString actionError()
const;
72 QString cause()
const;
The SystemError class encapsulates system generated errors as an Qx::Error interface compatible objec...
Definition qx-systemerror.h:22
SystemError()
Definition qx-systemerror.cpp:54
OriginalFormat
Definition qx-systemerror.h:26
@ Errno
Definition qx-systemerror.h:30
@ Invalid
Definition qx-systemerror.h:27
@ NtStatus
Definition qx-systemerror.h:29
@ Hresult
Definition qx-systemerror.h:28
The Qx namespace is the main namespace through which all non-global functionality of the Qx library i...
Definition qx-abstracterror.cpp:13
Severity
Definition qx-global.h:11
The qx-abstracterror.h header file provides access to the base class from which custom error types sh...
long LONG
Definition qx-windefs.h:5
LONG NTSTATUS
Definition qx-windefs.h:7
LONG HRESULT
Definition qx-windefs.h:6