TSDuck Version 3.16-1064 (TSDuck - The MPEG Transport Stream Toolkit)
ts::Exception Class Reference

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

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

Public Member Functions

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

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,
ErrorCode  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: