Oracle Coherence for C++ API


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.

 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.

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

The documentation for this class was generated from the following file:
Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.