libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
introvirt::AllocationFailedException Class Referencefinal

Thrown when failing to allocate guest memory. More...

#include <AllocationFailedException.hh>

Inheritance diagram for introvirt::AllocationFailedException:
Collaboration diagram for introvirt::AllocationFailedException:

Public Member Functions

size_t requested () const
 Get the requested number of bytes.
 
 AllocationFailedException (size_t requested)
 Construct a new instance.
 
 AllocationFailedException (AllocationFailedException &&) noexcept
 Move constructor.
 
AllocationFailedExceptionoperator= (AllocationFailedException &&) noexcept
 Move assignment operator.
 
 ~AllocationFailedException () noexcept override
 Destructor.
 
- Public Member Functions inherited from introvirt::TraceableException
int error_code () const
 Get the errno value if one was set.
 
 TraceableException (TraceableException &&) noexcept
 Move constructor.
 
TraceableExceptionoperator= (TraceableException &&) noexcept
 Move assignment operator.
 
 ~TraceableException () override
 Destroy the instance.
 

Additional Inherited Members

- Protected Member Functions inherited from introvirt::TraceableException
 TraceableException (const std::string &msg)
 Construct a new Traceable Exception object.
 
 TraceableException (const std::string &msg, int err)
 Construct a new Traceable Exception object with an erro code.
 

Detailed Description

Thrown when failing to allocate guest memory.

Constructor & Destructor Documentation

◆ AllocationFailedException() [1/2]

introvirt::AllocationFailedException::AllocationFailedException ( size_t  requested)

Construct a new instance.

Parameters
requestedThe number of bytes that were requested

◆ AllocationFailedException() [2/2]

introvirt::AllocationFailedException::AllocationFailedException ( AllocationFailedException &&  )
noexcept

Move constructor.

◆ ~AllocationFailedException()

introvirt::AllocationFailedException::~AllocationFailedException ( )
overridenoexcept

Destructor.

Member Function Documentation

◆ operator=()

AllocationFailedException & introvirt::AllocationFailedException::operator= ( AllocationFailedException &&  )
noexcept

Move assignment operator.

◆ requested()

size_t introvirt::AllocationFailedException::requested ( ) const

Get the requested number of bytes.

Returns
The number of bytes that were requested

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