---
name: "corelinux_CompositeException"
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_CompositeException"
---

# corelinux\_CompositeException(3)

CompositeException is the base exception type for Composite.

## NAME

corelinux::CompositeException - **CompositeException** is the base exception type for Composite.

## SYNOPSIS

`#include <CompositeException.hpp>`

Inherits **corelinux::Exception**.

Inherited by **corelinux::InvalidCompositeException**.

### Public Member Functions

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

### Protected Member Functions

**CompositeException** (CharCptr why, CharCptr file, LineNum line, **Severity** severity=Exception::CONTINUABLE, bool outOfMemory=false)\
 *Default Constructor.*  **CompositeException** (void)\
 **CompositeException** *must have at least a location..*

## Detailed Description

**CompositeException** is the base exception type for Composite.

All Composite exceptions derive from this.

## Constructor & Destructor Documentation

### corelinux::CompositeException::CompositeException (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::CompositeException::CompositeException (CompositeExceptionCref)

Copy constructor. **Parameters:**

*CompositeException* const reference

### corelinux::CompositeException::CompositeException (CharCptr why, CharCptr file, LineNum line, Severity severity = Exception::CONTINUABLE, bool outOfMemory = false)` [protected]`

Default Constructor. **Parameters:**

*why* describes why the exception was thrown \
 *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::CompositeException::CompositeException (void)` [protected]`

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

## Member Function Documentation

### CompositeExceptionRef corelinux::CompositeException::operator= (CompositeExceptionCref)

Assignment operator overload. **Parameters:**

*CompositeException* const reference

**Returns:**

**CompositeException** reference to self

### bool corelinux::CompositeException::operator== (CompositeExceptionCref) const

Equality operator overload. **Parameters:**

*CompositeException* const reference

**Returns:**

true if equal, false otherwise

## Author

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