#include <coherence/lang/OutOfMemoryError.hpp>
Inherits RuntimeException.
Public Types | |
typedef spec::Handle | Handle |
OutOfMemoryError Handle definition. | |
typedef spec::View | View |
OutOfMemoryError View definition. | |
typedef spec::Holder | Holder |
OutOfMemoryError Holder definition. | |
Static Public Member Functions | |
static void | ensure (void *pAlloc, size_t cb=0) |
Ensure that the supplied pointer is non-NULL. | |
Protected Member Functions | |
OutOfMemoryError (String::View vsMsg=String::null_string, Exception::View vCause=NULL) | |
Create a OutOfMemoryError. |
OutOfMemoryError | ( | String::View | vsMsg = String::null_string , |
|
Exception::View | vCause = NULL | |||
) | [protected] |
Create a OutOfMemoryError.
vsMsg | the detail message | |
vCause | the underlying cause of the exception |
static void ensure | ( | void * | pAlloc, | |
size_t | cb = 0 | |||
) | [static] |
Ensure that the supplied pointer is non-NULL.
If NULL then an OutOfMemoryErrorWill be thrown.
pAlloc | the pointer to validate | |
cb | the size of the allocation request |