Oracle Coherence for C++ API
Release 3.6.0.0
E15728-01

- Main Page
- Namespaces
- Classes
- Files

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# OutOfMemoryError Class Reference

`#include <coherence/lang/OutOfMemoryError.hpp>`

Inherits RuntimeException.

List of all members.

## Detailed Description

Thrown to indicate that an attempt to allocate an object failed due to resource constraints.

## 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.

## Constructor & Destructor Documentation

OutOfMemoryError | ( | String::View | vsMsg = `String::NULL_STRING`,
|  | Exception::View | vCause = `NULL` |
| ) |  |  | `[protected]`

Create a OutOfMemoryError.

Parameters:

  | vsMsg | the detail message
  | vCause | the underlying cause of the exception

## Member Function Documentation

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.

Parameters:

  | pAlloc | the pointer to validate
  | cb | the size of the allocation request

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

- coherence/lang/OutOfMemoryError.hpp

Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.