acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
last_error.h
1// Created by camilo on 2023-07-06 09:11 <3ThomasBorregaardSorensen!!
2#pragma once
3
4
5namespace windows
6{
7
8
9 class CLASS_DECL_ACME last_error
10 {
11 public:
12
13
14 ::u32 m_uLastError;
15
16
17 last_error();
18 last_error(::u32 uLastError) : m_uLastError(uLastError){}
19 last_error(const last_error & lasterror) : m_uLastError(lasterror.m_uLastError){}
20 last_error(const ::error_code & errorcode);
21 last_error & operator = (::u32 uLastError) {m_uLastError = uLastError; return *this;}
22 bool operator == (const last_error & lasterror) const {return m_uLastError == lasterror.m_uLastError; }
23 bool operator == (::u32 uLastError) const {return m_uLastError == uLastError; }
24
25 ::string get_error_description() const;
26
27 ::e_status as_estatus() const;
28
29 };
30
31
32 CLASS_DECL_ACME ::windows::last_error get_last_error();
33
34 [[ noreturn ]] CLASS_DECL_ACME void throw_last_error_exception(const last_error & lasterror);
35
36 [[ noreturn ]] CLASS_DECL_ACME void throw_last_error_exception();
37
38
39}
40
41
42
Definition e_status.h:30
Definition last_error.h:10