---
name: "ost_Exception"
section: "3"
platform: "linux"
package: "libcommoncpp2-doc"
version: "1.7.3-1.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/ost_Exception"
---

# ost\_Exception(3)

Mainline exception handler, this is the root for all Common C++ exceptions and assures the ansi C++ exception class hierarchy is both followed and imported into the gnu Common C++ class hierarchy.

## NAME

ost::Exception -

Mainline exception handler, this is the root for all Common C++ exceptions and assures the ansi C++ exception class hierarchy is both followed and imported into the gnu Common C++ class hierarchy.

## SYNOPSIS

`#include <exception.h>`

Inherited by **ost::IOException**, **ost::PersistException**, and **ost::ThrException**.

### Public Member Functions

**Exception** (const **String** &what\_arg)  throw ()\
 virtual **~Exception** ()  throw ()\
 virtual const char \* **getString** () const \
 virtual const char \* **what** () const   throw ()\

## Detailed Description

Mainline exception handler, this is the root for all Common C++ exceptions and assures the ansi C++ exception class hierarchy is both followed and imported into the gnu Common C++ class hierarchy.

**Author:**

David Sugar \<dyfet@ostel.com\> Base exception class for all Common C++ exceptions.

## Constructor & Destructor Documentation

### ost::Exception::Exception (const String & what\_arg) throw ()

### virtual ost::Exception::~Exception () throw ()` [virtual]`

## Member Function Documentation

### virtual const char\* ost::Exception::getString () const` [virtual]`

**Examples:**  **tcp.cpp**.

### virtual const char\* ost::Exception::what () const throw ()` [virtual]`

## Author

Generated automatically by Doxygen for GNU CommonC++ from the source code.
