TSDuck v3.38-3696
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::tlv::DeserializationInternalError Class Reference

Exception raised by deserialization of messages. More...

#include <tstlv.h>

Inheritance diagram for ts::tlv::DeserializationInternalError:
Collaboration diagram for ts::tlv::DeserializationInternalError:

Public Member Functions

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

Detailed Description

Exception raised by deserialization of messages.

This exception should never been raised by correctly implemented message classes.

It is raised when:

  • A protocol omits to create a message for a command tag it declares.
  • A message subclass tries to fetch parameters which are not declared in the protocol (or declared with a different size).

Constructor & Destructor Documentation

◆ DeserializationInternalError() [1/3]

ts::tlv::DeserializationInternalError::DeserializationInternalError ( const ts::UString w)
inlineexplicit

Constructor.


Parameters
[in]wError message for the exception.

◆ DeserializationInternalError() [2/3]

ts::tlv::DeserializationInternalError::DeserializationInternalError ( const ts::UString w,
int  code 
)
inlineexplicit

Constructor.


Parameters
[in]wError message for the exception.
[in]codeSystem error code.

◆ DeserializationInternalError() [3/3]

ts::tlv::DeserializationInternalError::DeserializationInternalError ( int  code)
inlineexplicit

Constructor.


Parameters
[in]codeSystem error code.

Member Function Documentation

◆ what()

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

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: