---
name: "corelinux_InvalidCompositeException"
section: "3"
platform: "linux"
package: "libcorelinux-dev"
version: "0.4.32-5"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/corelinux_InvalidCompositeException"
---

# corelinux\_InvalidCompositeException(3)

InvalidCompositeException is an exception that is usually thrown when a composite operation is attempted on a leaf component.

## NAME

corelinux::InvalidCompositeException - **InvalidCompositeException** is an exception that is usually thrown when a composite operation is attempted on a leaf component.

## SYNOPSIS

`#include <InvalidCompositeException.hpp>`

Inherits **corelinux::CompositeException**.

### Public Member Functions

**InvalidCompositeException** (CharCptr file, LineNum line, **Severity** severity=Exception::CONTINUABLE, bool outOfMemory=false)\
 *Default Constructor.*  **InvalidCompositeException** (**InvalidCompositeExceptionCref**)\
 *Copy constructor.*  virtual **~InvalidCompositeException** (void)\
 *Virtual Destructor.*  **InvalidCompositeExceptionRef** **operator=** (**InvalidCompositeExceptionCref**)\
 *Assignment operator overload.*  bool **operator==** (**InvalidCompositeExceptionCref**) const \
 *Equality operator overload.*

### Protected Member Functions

**InvalidCompositeException** (void)\
 **InvalidCompositeException** *must have at least a location..*

## Detailed Description

**InvalidCompositeException** is an exception that is usually thrown when a composite operation is attempted on a leaf component.

## Constructor & Destructor Documentation

### corelinux::InvalidCompositeException::InvalidCompositeException (CharCptr file, LineNum line, Severity severity = Exception::CONTINUABLE, bool outOfMemory = false)

Default Constructor. **Parameters:**

*file* The source module throwing the exception \
 *line* The line of source throwing the exception \
 *severity* The **Exception::Severity** of the **Exception** \
 *outOfMemory* An out of memory indicator

### corelinux::InvalidCompositeException::InvalidCompositeException (InvalidCompositeExceptionCref)

Copy constructor. **Parameters:**

*InvalidCompositeException* const reference

### corelinux::InvalidCompositeException::InvalidCompositeException (void)` [protected]`

**InvalidCompositeException** must have at least a location.. Default constructor is not allowed.

## Member Function Documentation

### InvalidCompositeExceptionRef corelinux::InvalidCompositeException::operator= (InvalidCompositeExceptionCref)

Assignment operator overload. **Parameters:**

*InvalidCompositeException* const reference

**Returns:**

**InvalidCompositeException** reference to self

### bool corelinux::InvalidCompositeException::operator== (InvalidCompositeExceptionCref) const

Equality operator overload. **Parameters:**

*InvalidCompositeException* const reference

**Returns:**

true if equal, false otherwise

## Author

Generated automatically by Doxygen for CoreLinux++ from the source code.
