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

# ConstCastException Class Reference

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

Inherits ClassCastException.

List of all members.

## Detailed Description

Thrown when an attempt is made to cast away constness from a Holder assigned from a View.

Author:
  mf 2008.08.06

## Public Types
typedef spec::Handle | Handle
| ConstCastException Handle definition.
typedef spec::View | View
| ConstCastException View definition.
typedef spec::Holder | Holder
| ConstCastException Holder definition.
## Protected Member Functions
| ConstCastException (String::View vsMessage=String::NULL_STRING, Exception::View vCause=NULL)
| Create an ConstCastException.

## Constructor & Destructor Documentation

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

Create an ConstCastException.

Parameters:

  | vsMessage | the exception message
  | vCause | the underlying cause of the exception; can be `NULL`

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

- coherence/lang/ConstCastException.hpp

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