---
name: "sc_SCException"
section: "3"
platform: "linux"
package: "libsc-doc"
version: "2.3.1-22"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/sc_SCException"
---

# sc\_SCException(3)

This is a std::exception specialization that records information about where an exception took place.

## NAME

sc::SCException - This is a std::exception specialization that records information about where an exception took place.

## SYNOPSIS

`#include <scexception.h>`

Inherits std::exception.

Inherited by **sc::AlgorithmException**, **sc::InputError**, **sc::LimitExceeded\< T \>**, **sc::ProgrammingError**, and **sc::SystemException**.

### Public Member Functions

**SCException** (const char \*description=0, const char \*file=0, int line=0, const **ClassDesc** \*class\_desc=0, const char \*exception\_type='SCException')  throw ()\
 **SCException** (const **SCException** &)  throw ()\
 const char \* **what** () const  throw ()\
 Reimplementation of std::exception::what().  const char \* **description** () const  throw ()\
 const char \* **file** () const  throw ()\
 int **line** () const  throw ()\
 const **ClassDesc** \* **class\_desc** () const  throw ()\
 const char \* **exception\_type** () const  throw ()\
 std::ostream & **elaborate** ()\
 Returns a stream where addition information about the exception can be written.

## Detailed Description

This is a std::exception specialization that records information about where an exception took place.

## Member Function Documentation

### std::ostream & sc::SCException::elaborate ()

Returns a stream where addition information about the exception can be written. This will throw if a valid stream cannot be returned (possibly due to low memory).

### const char \* sc::SCException::what () const

Reimplementation of std::exception::what(). The returned std::string is only valid for the lifetime of this object.

## Author

Generated automatically by Doxygen for MPQC from the source code.
