Public Member Functions | Private Attributes | List of all members
lar::memory_error Class Reference

Exception thrown when BulkAllocator-specific allocation errors happen. More...

#include <BulkAllocator.h>

Inheritance diagram for lar::memory_error:

Public Member Functions

 memory_error ()
 
 memory_error (const char *message)
 
virtual const char * what () const override throw ()
 

Private Attributes

const char * msg = nullptr
 

Detailed Description

Exception thrown when BulkAllocator-specific allocation errors happen.

Definition at line 37 of file BulkAllocator.h.

Constructor & Destructor Documentation

lar::memory_error::memory_error ( )
inline

Definition at line 39 of file BulkAllocator.h.

39 : std::bad_alloc() {}
lar::memory_error::memory_error ( const char *  message)
inline

Definition at line 40 of file BulkAllocator.h.

40 : std::bad_alloc(), msg(message) {}
const char * msg
Definition: BulkAllocator.h:45

Member Function Documentation

virtual const char* lar::memory_error::what ( void  ) const
throw (
)
inlineoverridevirtual

Definition at line 42 of file BulkAllocator.h.

42 { return msg; }
const char * msg
Definition: BulkAllocator.h:45

Member Data Documentation

const char* lar::memory_error::msg = nullptr
private

Definition at line 45 of file BulkAllocator.h.


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