TSDuck v3.38-3699
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::Exception Class Reference

Base class for all exceptions in TSDuck. More...

#include <tsException.h>

Inheritance diagram for ts::Exception:
Collaboration diagram for ts::Exception:

Public Member Functions

 Exception (const UString &message)
 Constructor.
 
 Exception (const UString &message, int error)
 Constructor.
 
virtual const char * what () const noexcept override
 Get the error message as a C-string.
 

Detailed Description

Base class for all exceptions in TSDuck.

Constructor & Destructor Documentation

◆ Exception() [1/2]

ts::Exception::Exception ( const UString message)
explicit

Constructor.

Parameters
[in]messageError message for the exception.

◆ Exception() [2/2]

ts::Exception::Exception ( const UString message,
int  error 
)

Constructor.

Parameters
[in]messageError message for the exception.
[in]errorSystem error code causing the exception.

Member Function Documentation

◆ what()

virtual const char * ts::Exception::what ( ) const
overridevirtualnoexcept

Get the error message as a C-string.

Returns
The error message as a C-string (valid as long as this instance exists).

The documentation for this class was generated from the following file: