xtd 1.0.0
Loading...
Searching...
No Matches
h_result.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "int32.hpp"
6#include "static.hpp"
7#define __XTD_CORE_INTERNAL__
11#undef __XTD_CORE_INTERNAL__
12#include <unordered_map>
13#include <system_error>
14#include <vector>
15
16// See [Interpreting HRESULTS returned from .NET/CLR: 0x8013XXXX](https://learn.microsoft.com/en-gb/archive/blogs/yizhang/interpreting-hresults-returned-from-netclr-0x8013xxxx)
17
19#if defined(_WIN32)
20# undef S_OK
21# undef S_FALSE
22# undef CO_E_NOTINITIALIZED
23# undef DISP_E_PARAMNOTFOUND
24# undef DISP_E_TYPEMISMATCH
25# undef DISP_E_BADVARTYPE
26# undef DISP_E_OVERFLOW
27# undef DISP_E_DIVBYZERO
28# undef E_ABORT
29# undef E_BOUNDS
30# undef E_CHANGED_STATE
31# undef E_FAIL
32# undef E_HANDLE
33# undef E_INVALIDARG
34# undef E_NOTIMPL
35# undef E_POINTER
36# undef E_UNEXPECTED
37# undef ERROR_MRM_MAP_NOT_FOUND
38# undef ERROR_TIMEOUT
39# undef RO_E_CLOSED
40# undef RPC_E_CHANGED_MODE
41# undef TYPE_E_TYPEMISMATCH
42# undef STG_E_PATHNOTFOUND
43# undef ERROR_TOO_MANY_OPEN_FILES
44# undef ERROR_SHARING_VIOLATION
45# undef ERROR_LOCK_VIOLATION
46# undef ERROR_OPEN_FAILED
47# undef ERROR_DISK_CORRUPT
48# undef ERROR_UNRECOGNIZED_VOLUME
49# undef ERROR_DLL_INIT_FAILED
50# undef ERROR_FILE_INVALID
51#endif
53
55namespace xtd {
96 public:
98
101 static constexpr auto S_OK = static_cast<xtd::int32>(0x00000000);
103 static constexpr auto S_FALSE = static_cast<xtd::int32>(0x00000001);
105 static constexpr auto COR_E_ABANDONEDMUTEX = static_cast<xtd::int32>(0x8013152Dl);
107 static constexpr auto COR_E_AMBIGUOUSIMPLEMENTATION = static_cast<xtd::int32>(0x8013106Al);
109 static constexpr auto COR_E_AMBIGUOUSMATCH = static_cast<xtd::int32>(0x8000211D);
111 static constexpr auto COR_E_APPDOMAINUNLOADED = static_cast<xtd::int32>(0x80131014);
113 static constexpr auto COR_E_APPLICATION = static_cast<xtd::int32>(0x80131600);
115 static constexpr auto COR_E_ARGUMENT = static_cast<xtd::int32>(0x80070057); // Duplicate with E_INVALIDARG
117 static constexpr auto COR_E_ARGUMENTOUTOFRANGE = static_cast<xtd::int32>(0x80131502);
119 static constexpr auto COR_E_ARITHMETIC = static_cast<xtd::int32>(0x80070216);
121 static constexpr auto COR_E_ARRAYTYPEMISMATCH = static_cast<xtd::int32>(0x80131503);
123 static constexpr auto COR_E_BADEXEFORMAT = static_cast<xtd::int32>(0x800700C1);
125 static constexpr auto COR_E_BADIMAGEFORMAT = static_cast<xtd::int32>(0x8007000B);
127 static constexpr auto COR_E_CANNOTUNLOADAPPDOMAIN = static_cast<xtd::int32>(0x80131015);
129 static constexpr auto COR_E_CODECONTRACTFAILED = static_cast<xtd::int32>(0x80131542);
131 static constexpr auto COR_E_CONTEXTMARSHAL = static_cast<xtd::int32>(0x80131504);
133 static constexpr auto COR_E_CUSTOMATTRIBUTEFORMAT = static_cast<xtd::int32>(0x80131605);
135 static constexpr auto COR_E_DATAMISALIGNED = static_cast<xtd::int32>(0x80131541);
137 static constexpr auto COR_E_DIRECTORYNOTFOUND = static_cast<xtd::int32>(0x80070003);
139 static constexpr auto COR_E_DIVIDEBYZERO = static_cast<xtd::int32>(0x80020012); // Duplicate with DISP_E_DIVBYZERO
141 static constexpr auto COR_E_DLLNOTFOUND = static_cast<xtd::int32>(0x80131524);
143 static constexpr auto COR_E_DRIVENOTFOUND = static_cast<xtd::int32>(0x80070007);
145 static constexpr auto COR_E_DUPLICATEWAITOBJECT = static_cast<xtd::int32>(0x80131529);
147 static constexpr auto COR_E_ENDOFSTREAM = static_cast<xtd::int32>(0x80070026);
149 static constexpr auto COR_E_ENTRYPOINTNOTFOUND = static_cast<xtd::int32>(0x80131523);
151 static constexpr auto COR_E_EXCEPTION = static_cast<xtd::int32>(0x80131500);
153 static constexpr auto COR_E_EXECUTIONENGINE = static_cast<xtd::int32>(0x80131506);
155 static constexpr auto COR_E_FAILFAST = static_cast<xtd::int32>(0x80131623);
157 static constexpr auto COR_E_FIELDACCESS = static_cast<xtd::int32>(0x80131507);
159 static constexpr auto COR_E_FILELOAD = static_cast<xtd::int32>(0x80131621);
161 static constexpr auto COR_E_FILENOTFOUND = static_cast<xtd::int32>(0x80070002); // Duplicate with E_FILENOTFOUND
163 static constexpr auto COR_E_FORMAT = static_cast<xtd::int32>(0x80131537);
165 static constexpr auto COR_E_INDEXOUTOFRANGE = static_cast<xtd::int32>(0x80131508);
167 static constexpr auto COR_E_INSUFFICIENTEXECUTIONSTACK = static_cast<xtd::int32>(0x80131578);
169 static constexpr auto COR_E_INSUFFICIENTMEMORY = static_cast<xtd::int32>(0x8013153D);
171 static constexpr auto COR_E_INVALIDCAST = static_cast<xtd::int32>(0x80004002);
173 static constexpr auto COR_E_INVALIDCOMOBJECT = static_cast<xtd::int32>(0x80131527);
175 static constexpr auto COR_E_INVALIDFILTERCRITERIA = static_cast<xtd::int32>(0x80131601);
177 static constexpr auto COR_E_INVALIDOLEVARIANTTYPE = static_cast<xtd::int32>(0x80131531);
179 static constexpr auto COR_E_INVALIDOPERATION = static_cast<xtd::int32>(0x80131509);
181 static constexpr auto COR_E_INVALIDPROGRAM = static_cast<xtd::int32>(0x8013153A);
183 static constexpr auto COR_E_IO = static_cast<xtd::int32>(0x80131620);
185 static constexpr auto COR_E_KEYNOTFOUND = static_cast<xtd::int32>(0x80131577);
187 static constexpr auto COR_E_MARSHALDIRECTIVE = static_cast<xtd::int32>(0x80131535);
189 static constexpr auto COR_E_MEMBERACCESS = static_cast<xtd::int32>(0x8013151A);
191 static constexpr auto COR_E_METHODACCESS = static_cast<xtd::int32>(0x80131510);
193 static constexpr auto COR_E_MISSINGFIELD = static_cast<xtd::int32>(0x80131511);
195 static constexpr auto COR_E_MISSINGMANIFESTRESOURCE = static_cast<xtd::int32>(0x80131532);
197 static constexpr auto COR_E_MISSINGMEMBER = static_cast<xtd::int32>(0x80131512);
199 static constexpr auto COR_E_MISSINGMETHOD = static_cast<xtd::int32>(0x80131513);
201 static constexpr auto COR_E_MISSINGSATELLITEASSEMBLY = static_cast<xtd::int32>(0x80131536);
203 static constexpr auto COR_E_MULTICASTNOTSUPPORTED = static_cast<xtd::int32>(0x80131514);
205 static constexpr auto COR_E_NOTFINITENUMBER = static_cast<xtd::int32>(0x80131528);
207 static constexpr auto COR_E_NOTSUPPORTED = static_cast<xtd::int32>(0x80131515);
209 static constexpr auto COR_E_OBJECTCLOSED = static_cast<xtd::int32>(0x80131622);
211 static constexpr auto COR_E_OPERATIONCANCELED = static_cast<xtd::int32>(0x8013153B);
213 static constexpr auto COR_E_OUTOFMEMORY = static_cast<xtd::int32>(0x8007000E);
215 static constexpr auto COR_E_OVERFLOW = static_cast<xtd::int32>(0x80131516);
217 static constexpr auto COR_E_PATHTOOLONG = static_cast<xtd::int32>(0x800700CE);
219 static constexpr auto COR_E_PLATFORMNOTSUPPORTED = static_cast<xtd::int32>(0x80131539);
221 static constexpr auto COR_E_RANK = static_cast<xtd::int32>(0x80131517);
223 static constexpr auto COR_E_REFLECTIONTYPELOAD = static_cast<xtd::int32>(0x80131602);
225 static constexpr auto COR_E_RUNTIMEWRAPPED = static_cast<xtd::int32>(0x8013153E);
227 static constexpr auto COR_E_SAFEARRAYRANKMISMATCH = static_cast<xtd::int32>(0x80131538);
229 static constexpr auto COR_E_SAFEARRAYTYPEMISMATCH = static_cast<xtd::int32>(0x80131533);
231 static constexpr auto COR_E_SECURITY = static_cast<xtd::int32>(0x8013150A);
233 static constexpr auto COR_E_SERIALIZATION = static_cast<xtd::int32>(0x8013150C);
235 static constexpr auto COR_E_STACKOVERFLOW = static_cast<xtd::int32>(0x800703E9);
237 static constexpr auto COR_E_SYNCHRONIZATIONLOCK = static_cast<xtd::int32>(0x80131518);
239 static constexpr auto COR_E_SYSTEM = static_cast<xtd::int32>(0x80131501);
241 static constexpr auto COR_E_TARGET = static_cast<xtd::int32>(0x80131603);
243 static constexpr auto COR_E_TARGETINVOCATION = static_cast<xtd::int32>(0x80131604);
245 static constexpr auto COR_E_TARGETPARAMCOUNT = static_cast<xtd::int32>(0x8002000E);
247 static constexpr auto COR_E_THREADABORTED = static_cast<xtd::int32>(0x80131530);
249 static constexpr auto COR_E_THREADINTERRUPTED = static_cast<xtd::int32>(0x80131519);
251 static constexpr auto COR_E_THREADSTART = static_cast<xtd::int32>(0x80131525);
253 static constexpr auto COR_E_THREADSTATE = static_cast<xtd::int32>(0x80131520);
255 static constexpr auto COR_E_TIMEOUT = static_cast<xtd::int32>(0x80131505);
257 static constexpr auto COR_E_TYPEACCESS = static_cast<xtd::int32>(0x80131543);
259 static constexpr auto COR_E_TYPEINITIALIZATION = static_cast<xtd::int32>(0x80131534);
261 static constexpr auto COR_E_TYPELOAD = static_cast<xtd::int32>(0x80131522);
263 static constexpr auto COR_E_TYPEUNLOADED = static_cast<xtd::int32>(0x80131013);
265 static constexpr auto COR_E_UNAUTHORIZEDACCESS = static_cast<xtd::int32>(0x80070005);
267 static constexpr auto COR_E_VERIFICATION = static_cast<xtd::int32>(0x8013150D);
269 static constexpr auto COR_E_WAITHANDLECANNOTBEOPENED = static_cast<xtd::int32>(0x8013152C);
271 static constexpr auto CO_E_NOTINITIALIZED = static_cast<xtd::int32>(0x800401F0);
273 static constexpr auto DISP_E_PARAMNOTFOUND = static_cast<xtd::int32>(0x80020004);
275 static constexpr auto DISP_E_TYPEMISMATCH = static_cast<xtd::int32>(0x80020005);
277 static constexpr auto DISP_E_BADVARTYPE = static_cast<xtd::int32>(0x80020008);
279 static constexpr auto DISP_E_OVERFLOW = static_cast<xtd::int32>(0x8002000A);
281 static constexpr auto DISP_E_DIVBYZERO = static_cast<xtd::int32>(0x80020012); // Duplicate with COR_E_DIVIDEBYZERO
283 static constexpr auto E_ABORT = static_cast<xtd::int32>(0x80004004);
285 static constexpr auto E_BOUNDS = static_cast<xtd::int32>(0x8000000B);
287 static constexpr auto E_CHANGED_STATE = static_cast<xtd::int32>(0x8000000C);
289 static constexpr auto E_FILENOTFOUND = static_cast<xtd::int32>(0x80070002); // Duplicate with COR_E_FILENOTFOUND
291 static constexpr auto E_FAIL = static_cast<xtd::int32>(0x80004005);
293 static constexpr auto E_HANDLE = static_cast<xtd::int32>(0x80070006);
295 static constexpr auto E_INVALIDARG = static_cast<xtd::int32>(0x80070057); // Duplicate with COR_E_ARGUMENT
297 static constexpr auto E_NOTIMPL = static_cast<xtd::int32>(0x80004001);
299 static constexpr auto E_POINTER = static_cast<xtd::int32>(0x80004003);
301 static constexpr auto E_UNEXPECTED = static_cast<xtd::int32>(0x8000FFFF);
303 static constexpr auto ERROR_MRM_MAP_NOT_FOUND = static_cast<xtd::int32>(0x80073B1F);
305 static constexpr auto ERROR_TIMEOUT = static_cast<xtd::int32>(0x800705B4);
307 static constexpr auto RO_E_CLOSED = static_cast<xtd::int32>(0x80000013);
309 static constexpr auto RPC_E_CHANGED_MODE = static_cast<xtd::int32>(0x80010106);
311 static constexpr auto TYPE_E_TYPEMISMATCH = static_cast<xtd::int32>(0x80028CA0);
313 static constexpr auto STG_E_PATHNOTFOUND = static_cast<xtd::int32>(0x80030003);
315 static constexpr auto CTL_E_PATHNOTFOUND = static_cast<xtd::int32>(0x800A004C);
317 static constexpr auto CTL_E_FILENOTFOUND = static_cast<xtd::int32>(0x800A0035);
319 static constexpr auto FUSION_E_INVALID_NAME = static_cast<xtd::int32>(0x80131047);
321 static constexpr auto FUSION_E_REF_DEF_MISMATCH = static_cast<xtd::int32>(0x80131040);
323 static constexpr auto ERROR_TOO_MANY_OPEN_FILES = static_cast<xtd::int32>(0x80070004);
325 static constexpr auto ERROR_SHARING_VIOLATION = static_cast<xtd::int32>(0x80070020);
327 static constexpr auto ERROR_LOCK_VIOLATION = static_cast<xtd::int32>(0x80070021);
329 static constexpr auto ERROR_OPEN_FAILED = static_cast<xtd::int32>(0x8007006E);
331 static constexpr auto ERROR_DISK_CORRUPT = static_cast<xtd::int32>(0x80070571);
333 static constexpr auto ERROR_UNRECOGNIZED_VOLUME = static_cast<xtd::int32>(0x800703ED);
335 static constexpr auto ERROR_DLL_INIT_FAILED = static_cast<xtd::int32>(0x8007045A);
337 static constexpr auto MSEE_E_ASSEMBLYLOADINPROGRESS = static_cast<xtd::int32>(0x80131016);
339 static constexpr auto ERROR_FILE_INVALID = static_cast<xtd::int32>(0x800703EE);
341
343
348 static auto failed(xtd::int32 h_result) noexcept -> bool;
349
353 [[nodiscard]] static auto get_code(xtd::int32 h_result) noexcept -> xtd::int32;
354
489 [[nodiscard]] static auto get_facility(int32 h_result) noexcept -> xtd::int32;
490
493 [[nodiscard]] static auto get_h_results() noexcept -> const xtd::array<xtd::int32>&;
494
498 [[nodiscard]] static auto get_message(xtd::int32 h_result) noexcept -> xtd::string;
499
502 [[nodiscard]] static auto get_messages() noexcept -> const xtd::collections::generic::dictionary<xtd::int32, xtd::string>&;
503
507 [[nodiscard]] static auto get_name(xtd::int32 h_result) noexcept -> xtd::string;
508
511 [[nodiscard]] static auto get_names() noexcept -> const xtd::collections::generic::dictionary<xtd::int32, xtd::string>&;
512
521 [[nodiscard]] static auto get_severity(xtd::int32 h_result) noexcept -> xtd::int32;
522
525 [[nodiscard]] static auto h_result_category() noexcept -> const std::error_category&;
526
530 [[nodiscard]] static auto is_error(xtd::int32 h_result) noexcept -> bool;
531
535 [[nodiscard]] static auto make_error_code(xtd::int32 h_result) noexcept -> std::error_code;
536
540 static auto succeeded(xtd::int32 h_result) noexcept -> bool;
541
545 [[nodiscard]] static auto to_string(xtd::int32 h_result) noexcept -> xtd::string;
547 };
548}
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:64
Contains the HRESULT values used by xtd.
Definition h_result.hpp:95
static auto get_messages() noexcept -> const xtd::collections::generic::dictionary< xtd::int32, xtd::string > &
Gets The HRESULT messages.
static constexpr auto COR_E_SERIALIZATION
Serialization error.
Definition h_result.hpp:233
static constexpr auto COR_E_SYNCHRONIZATIONLOCK
Object synchronization method was called from an unsynchronized block of code.
Definition h_result.hpp:237
static constexpr auto COR_E_TYPELOAD
Failure has occurred while loading a type.
Definition h_result.hpp:261
static constexpr auto ERROR_FILE_INVALID
File invalid.
Definition h_result.hpp:339
static constexpr auto E_POINTER
Attempted to read or write protected memory. This is often an indication that other memory is corrupt...
Definition h_result.hpp:299
static auto failed(xtd::int32 h_result) noexcept -> bool
Provides a generic fail test for the specified HRESULT.
static constexpr auto COR_E_INVALIDFILTERCRITERIA
Specified filter criteria was invalid.
Definition h_result.hpp:175
static constexpr auto COR_E_MISSINGMEMBER
Attempted to access a missing member.
Definition h_result.hpp:197
static constexpr auto COR_E_CUSTOMATTRIBUTEFORMAT
Binary format of the specified custom attribute was invalid.
Definition h_result.hpp:133
static constexpr auto COR_E_ABANDONEDMUTEX
The wait completed due to an abandoned mutex.
Definition h_result.hpp:105
static constexpr auto COR_E_MEMBERACCESS
Cannot access member.
Definition h_result.hpp:189
static constexpr auto COR_E_EXCEPTION
Exception of type 'xtd::exception' was thrown.
Definition h_result.hpp:151
static constexpr auto COR_E_RANK
Attempted to operate on an array with the incorrect number of dimensions.
Definition h_result.hpp:221
static constexpr auto COR_E_RUNTIMEWRAPPED
An object that does not derive from xtd:oobject has been wrapped in a runtime_wrapped_exception.
Definition h_result.hpp:225
static constexpr auto COR_E_AMBIGUOUSIMPLEMENTATION
Ambiguous implementation found.
Definition h_result.hpp:107
static auto get_h_results() noexcept -> const xtd::array< xtd::int32 > &
Gets an array of HRESULT.
static constexpr auto DISP_E_OVERFLOW
Arithmetic operation resulted in an overflow.
Definition h_result.hpp:279
static constexpr auto E_CHANGED_STATE
The state has been modified.
Definition h_result.hpp:287
static constexpr auto COR_E_TARGETINVOCATION
Exception has been thrown by the target of an invocation.
Definition h_result.hpp:243
static constexpr auto COR_E_FAILFAST
Fail fast.
Definition h_result.hpp:155
static constexpr auto COR_E_NOTSUPPORTED
Specified method is not supported.
Definition h_result.hpp:207
static constexpr auto ERROR_DLL_INIT_FAILED
DLL init failed.
Definition h_result.hpp:335
static constexpr auto COR_E_INDEXOUTOFRANGE
Index was outside the bounds of the array.
Definition h_result.hpp:165
static constexpr auto COR_E_OVERFLOW
Arithmetic operation resulted in an overflow.
Definition h_result.hpp:215
static constexpr auto COR_E_VERIFICATION
Operation could destabilize the runtime.
Definition h_result.hpp:267
static constexpr auto FUSION_E_REF_DEF_MISMATCH
Fusion the reference definition is incompatible.
Definition h_result.hpp:321
static constexpr auto COR_E_METHODACCESS
Attempt to access the method failed.
Definition h_result.hpp:191
static constexpr auto COR_E_STACKOVERFLOW
Operation caused a stack overflow.
Definition h_result.hpp:235
static constexpr auto COR_E_TYPEINITIALIZATION
The type initializer for 'value' threw an exception.
Definition h_result.hpp:259
static constexpr auto COR_E_INVALIDCOMOBJECT
Attempt has been made to use a COM object that does not have a backing class factory.
Definition h_result.hpp:173
static constexpr auto COR_E_OUTOFMEMORY
Insufficient memory to continue the execution of the program.
Definition h_result.hpp:213
static constexpr auto COR_E_THREADINTERRUPTED
Thread was interrupted from a waiting state.
Definition h_result.hpp:249
static constexpr auto E_BOUNDS
Bounds exception.
Definition h_result.hpp:285
static constexpr auto COR_E_IO
I/O error occurred.
Definition h_result.hpp:183
static constexpr auto E_UNEXPECTED
Unexpected failure.
Definition h_result.hpp:301
static constexpr auto S_FALSE
Operation successful but returned no results.
Definition h_result.hpp:103
static constexpr auto RPC_E_CHANGED_MODE
Cannot change the current thread mode.
Definition h_result.hpp:309
static auto get_code(xtd::int32 h_result) noexcept -> xtd::int32
Gets the code portion of the specified HRESULT.
static constexpr auto COR_E_CONTEXTMARSHAL
Attempted to marshal an object across a context boundary.
Definition h_result.hpp:131
static constexpr auto COR_E_MULTICASTNOTSUPPORTED
Attempted to add multiple callbacks to a delegate that does not support multicast.
Definition h_result.hpp:203
static auto to_string(xtd::int32 h_result) noexcept -> xtd::string
Gets the name of the specified HRESULT.
static constexpr auto COR_E_MARSHALDIRECTIVE
Marshaling directives are invalid.
Definition h_result.hpp:187
static constexpr auto ERROR_TOO_MANY_OPEN_FILES
Too many open files.
Definition h_result.hpp:323
static constexpr auto COR_E_INSUFFICIENTMEMORY
Insufficient memory to continue the execution of the program.
Definition h_result.hpp:169
static constexpr auto DISP_E_TYPEMISMATCH
Attempt to access a variable with an incompatible type.
Definition h_result.hpp:275
static constexpr auto MSEE_E_ASSEMBLYLOADINPROGRESS
Assembly load in progress.
Definition h_result.hpp:337
static constexpr auto COR_E_NOTFINITENUMBER
Number encountered was not a finite quantity.
Definition h_result.hpp:205
static constexpr auto DISP_E_DIVBYZERO
Attempted to divide by zero.
Definition h_result.hpp:281
static constexpr auto COR_E_INSUFFICIENTEXECUTIONSTACK
Insufficient stack to continue executing the program safely. This can happen from having too many fun...
Definition h_result.hpp:167
static constexpr auto S_OK
Operation successful.
Definition h_result.hpp:101
static constexpr auto COR_E_DLLNOTFOUND
Dll was not found.
Definition h_result.hpp:141
static constexpr auto COR_E_ARGUMENT
Value does not fall within the expected range.
Definition h_result.hpp:115
static constexpr auto COR_E_PATHTOOLONG
The specified file name or path is too long, or a component of the specified path is too long.
Definition h_result.hpp:217
static constexpr auto COR_E_REFLECTIONTYPELOAD
Exception of type 'xtd::reflection::reflection_type_load_exception' was thrown.
Definition h_result.hpp:223
static constexpr auto ERROR_SHARING_VIOLATION
Sharing violation.
Definition h_result.hpp:325
static constexpr auto ERROR_MRM_MAP_NOT_FOUND
Resource map not found.
Definition h_result.hpp:303
static constexpr auto E_ABORT
Operation aborted.
Definition h_result.hpp:283
static auto get_facility(int32 h_result) noexcept -> xtd::int32
The facility of the specified HRESULT, which indicates what API or framework originated this error.
static constexpr auto COR_E_FIELDACCESS
Attempted to access a field that is not accessible by the caller.
Definition h_result.hpp:157
static constexpr auto COR_E_OPERATIONCANCELED
The operation was canceled.
Definition h_result.hpp:211
static constexpr auto COR_E_INVALIDCAST
Specified cast is not valid.
Definition h_result.hpp:171
static constexpr auto CTL_E_PATHNOTFOUND
Attempted to access a path that is not on the disk.
Definition h_result.hpp:315
static constexpr auto ERROR_UNRECOGNIZED_VOLUME
Unrecognized volume.
Definition h_result.hpp:333
static auto get_message(xtd::int32 h_result) noexcept -> xtd::string
Gets the message of the specified HRESULT.
static constexpr auto COR_E_THREADABORTED
Thread was aborted.
Definition h_result.hpp:247
static auto get_names() noexcept -> const xtd::collections::generic::dictionary< xtd::int32, xtd::string > &
Gets The HRESULT names.
static constexpr auto COR_E_TIMEOUT
The operation has timed out.
Definition h_result.hpp:255
static constexpr auto FUSION_E_INVALID_NAME
Fusion invalid name exception.
Definition h_result.hpp:319
static constexpr auto ERROR_TIMEOUT
The operation has timed out.
Definition h_result.hpp:305
static constexpr auto COR_E_ARRAYTYPEMISMATCH
Attempted to access an element as a type incompatible with the array.
Definition h_result.hpp:121
static constexpr auto COR_E_MISSINGMETHOD
Attempted to access a missing method.
Definition h_result.hpp:199
static constexpr auto DISP_E_BADVARTYPE
Invalid variable type.
Definition h_result.hpp:277
static auto is_error(xtd::int32 h_result) noexcept -> bool
Provides a generic is error test for the specified HRESULT.
static constexpr auto RO_E_CLOSED
The object has been closed.
Definition h_result.hpp:307
static constexpr auto COR_E_CODECONTRACTFAILED
A code contract (ie, precondition, postcondition, invariant, or assert) failed.
Definition h_result.hpp:129
static constexpr auto COR_E_APPLICATION
Error in the application.
Definition h_result.hpp:113
static constexpr auto COR_E_AMBIGUOUSMATCH
Ambiguous match found.
Definition h_result.hpp:109
static constexpr auto COR_E_FILELOAD
Could not load the specified file.
Definition h_result.hpp:159
static constexpr auto CO_E_NOTINITIALIZED
Not initialized.
Definition h_result.hpp:271
static constexpr auto COR_E_FILENOTFOUND
Unable to find the specified file.
Definition h_result.hpp:161
static constexpr auto COR_E_UNAUTHORIZEDACCESS
Attempted to perform an unauthorized operation.
Definition h_result.hpp:265
static auto h_result_category() noexcept -> const std::error_category &
Obtains a reference to the static error category object for HRESULT errors. The object is required to...
static constexpr auto COR_E_MISSINGFIELD
Attempted to access a non-existing field.
Definition h_result.hpp:193
static constexpr auto COR_E_WAITHANDLECANNOTBEOPENED
No handle of the given name exists.
Definition h_result.hpp:269
static constexpr auto COR_E_TYPEACCESS
Attempt to access the type failed.
Definition h_result.hpp:257
static constexpr auto COR_E_MISSINGSATELLITEASSEMBLY
Resource lookup fell back to the ultimate fallback resources in a satellite assembly,...
Definition h_result.hpp:201
static constexpr auto COR_E_SAFEARRAYTYPEMISMATCH
Specified array was not of the expected type.
Definition h_result.hpp:229
static constexpr auto COR_E_ARGUMENTOUTOFRANGE
Specified argument was out of the range of valid values.
Definition h_result.hpp:117
static constexpr auto COR_E_DRIVENOTFOUND
Could not find the drive. The drive might not be ready or might not be mapped.
Definition h_result.hpp:143
static constexpr auto COR_E_MISSINGMANIFESTRESOURCE
Attempted to access a missing manifest resource.
Definition h_result.hpp:195
static constexpr auto COR_E_PLATFORMNOTSUPPORTED
Operation is not supported on this platform.
Definition h_result.hpp:219
static constexpr auto COR_E_TARGET
Exception of type 'xtd::reflection::target_exception' was thrown.
Definition h_result.hpp:241
static constexpr auto ERROR_OPEN_FAILED
Open failed.
Definition h_result.hpp:329
static constexpr auto COR_E_ARITHMETIC
Overflow or underflow in the arithmetic operation.
Definition h_result.hpp:119
static constexpr auto COR_E_SAFEARRAYRANKMISMATCH
Specified array was not of the expected rank.
Definition h_result.hpp:227
static constexpr auto DISP_E_PARAMNOTFOUND
Could not find the parameter.
Definition h_result.hpp:273
static constexpr auto COR_E_DIVIDEBYZERO
Attempted to divide by zero.
Definition h_result.hpp:139
static constexpr auto TYPE_E_TYPEMISMATCH
Incompatible type.
Definition h_result.hpp:311
static constexpr auto COR_E_TYPEUNLOADED
Type had been unloaded.
Definition h_result.hpp:263
static constexpr auto ERROR_DISK_CORRUPT
Disk corrupt.
Definition h_result.hpp:331
static constexpr auto COR_E_OBJECTCLOSED
Cannot access a closed object.
Definition h_result.hpp:209
static constexpr auto COR_E_THREADSTART
Thread start failure.
Definition h_result.hpp:251
static constexpr auto COR_E_BADIMAGEFORMAT
Format of the executable (.exe) or library (.dll) is invalid.
Definition h_result.hpp:125
static constexpr auto COR_E_ENTRYPOINTNOTFOUND
Entry point was not found.
Definition h_result.hpp:149
static auto get_name(xtd::int32 h_result) noexcept -> xtd::string
Gets the name of the specified HRESULT.
static constexpr auto COR_E_DUPLICATEWAITOBJECT
Duplicate objects in argument.
Definition h_result.hpp:145
static constexpr auto E_HANDLE
The handle is invalid.
Definition h_result.hpp:293
static constexpr auto COR_E_SYSTEM
System error.
Definition h_result.hpp:239
static constexpr auto COR_E_DIRECTORYNOTFOUND
Attempted to access a path that is not on the disk.
Definition h_result.hpp:137
static constexpr auto COR_E_FORMAT
One of the identified items was in an invalid format.
Definition h_result.hpp:163
static constexpr auto COR_E_INVALIDOLEVARIANTTYPE
Specified OLE variant was invalid.
Definition h_result.hpp:177
static constexpr auto COR_E_DATAMISALIGNED
A datatype misalignment was detected in a load or store instruction.
Definition h_result.hpp:135
static constexpr auto COR_E_SECURITY
Security error.
Definition h_result.hpp:231
static constexpr auto COR_E_BADEXEFORMAT
Format of the executable (.exe) cannot be run.
Definition h_result.hpp:123
static constexpr auto COR_E_TARGETPARAMCOUNT
Number of parameters specified does not match the expected number.
Definition h_result.hpp:245
static constexpr auto CTL_E_FILENOTFOUND
Unable to find the specified file.
Definition h_result.hpp:317
static constexpr auto COR_E_KEYNOTFOUND
The given key was not present in the dictionary.
Definition h_result.hpp:185
static constexpr auto E_FILENOTFOUND
Unable to find the specified file.
Definition h_result.hpp:289
static constexpr auto E_NOTIMPL
The method or operation is not implemented.
Definition h_result.hpp:297
static constexpr auto COR_E_CANNOTUNLOADAPPDOMAIN
Attempt to unload the AppDomain failed.
Definition h_result.hpp:127
static constexpr auto COR_E_APPDOMAINUNLOADED
Attempted to access an unloaded AppDomain.
Definition h_result.hpp:111
static constexpr auto COR_E_INVALIDOPERATION
Operation is not valid due to the current state of the object.
Definition h_result.hpp:179
static constexpr auto ERROR_LOCK_VIOLATION
Lock violations.
Definition h_result.hpp:327
static constexpr auto E_FAIL
Unspecified failure.
Definition h_result.hpp:291
static constexpr auto COR_E_THREADSTATE
Thread was in an invalid state for the operation being executed.
Definition h_result.hpp:253
static constexpr auto COR_E_EXECUTIONENGINE
Internal error in the runtime.
Definition h_result.hpp:153
static constexpr auto COR_E_ENDOFSTREAM
Attempted to read past the end of the stream.
Definition h_result.hpp:147
static constexpr auto STG_E_PATHNOTFOUND
Attempted to access a path that is not on the disk.
Definition h_result.hpp:313
static auto make_error_code(xtd::int32 h_result) noexcept -> std::error_code
Creates error code value for the specified HRESULT.
static auto get_severity(xtd::int32 h_result) noexcept -> xtd::int32
The severity of the specified HRESULT, which indicates what API or framework originated this error.
static constexpr auto E_INVALIDARG
Value does not fall within the expected range.
Definition h_result.hpp:295
static auto succeeded(xtd::int32 h_result) noexcept -> bool
Provides a generic success test for the specified HRESULT.
static constexpr auto COR_E_INVALIDPROGRAM
xtd detected an invalid program.
Definition h_result.hpp:181
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:38
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
Contains xtd::int32 type.
The xtd::collections namespace contains interfaces and classes that define various collections of obj...
Definition any_pair.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::static_object class.