SafetyHook
Loading...
Searching...
No Matches
safetyhook::VmtHook::Error Struct Reference

Error type for VmtHook. More...

#include <vmt_hook.hpp>

Public Types

enum  : uint8_t { BAD_ALLOCATION }
 The type of error. More...
 

Static Public Member Functions

static Error bad_allocation (Allocator::Error err)
 Create a BAD_ALLOCATION error.
 

Public Attributes

enum safetyhook::VmtHook::Error:: { ... }  type
 The type of error.
 
union { 
 
   Allocator::Error   allocator_error 
 Allocator error information.
 
};  
 Extra error information.
 

Detailed Description

Error type for VmtHook.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : uint8_t

The type of error.

Enumerator
BAD_ALLOCATION 

An error occurred while allocating memory.

Member Function Documentation

◆ bad_allocation()

static Error safetyhook::VmtHook::Error::bad_allocation ( Allocator::Error err)
inlinestaticnodiscard

Create a BAD_ALLOCATION error.

Parameters
errThe Allocator::Error that failed.
Returns
The new BAD_ALLOCATION error.

The documentation for this struct was generated from the following file: