Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
AllocFailure Class Reference

A class used for memory allocation failures. More...

#include <alloc_failure.hpp>

Inheritance diagram for AllocFailure:
[legend]
Collaboration diagram for AllocFailure:
[legend]

Public Member Functions

 AllocFailure (const char *error_s)
 Construct an Exception for a memory allocation failure. More...
 
 ~AllocFailure () throw ()
 
virtual const char * what () const throw ()
 Get the string describing the cause of this AllocFailure. More...
 

Detailed Description

A class used for memory allocation failures.

This is a thin wrapper on top of bad_alloc, allowing the error message to be set when constructing the Exception.

Constructor & Destructor Documentation

◆ AllocFailure()

AllocFailure ( const char *  error_s)

Construct an Exception for a memory allocation failure.

Parameters
error_sThe string describing the cause of this AllocFailure.

◆ ~AllocFailure()

~AllocFailure ( )
throw (
)

Member Function Documentation

◆ what()

virtual const char* what ( ) const
throw (
)
virtual

Get the string describing the cause of this AllocFailure.

Returns
The string describing the cause of this AllocFailure.

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