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

# sc\_SyscallFailed(3)

This is thrown when an system call fails with an errno.

## NAME

sc::SyscallFailed - This is thrown when an system call fails with an errno.

## SYNOPSIS

`#include <scexception.h>`

Inherits **sc::SystemException**.

### Public Member Functions

**SyscallFailed** (const char \*description=0, const char \*source\_file=0, int line=0, const char \***syscall**=0, int err=0, const **ClassDesc** \*class\_desc=0, const char \*exception\_type='SyscallFailed')  throw ()\
 **SyscallFailed** (const **SyscallFailed** &)  throw ()\
 const char \* **syscall** () const  throw ()\
 Returns the file name of the file that caused the error, if known.  int **err** () const  throw ()\

## Detailed Description

This is thrown when an system call fails with an errno.

## Member Function Documentation

### const char \* sc::SyscallFailed::syscall () const` [inline]`

Returns the file name of the file that caused the error, if known. Otherwise 0 is returned.

## Author

Generated automatically by Doxygen for MPQC from the source code.
