retdec
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
retdec::unpacker::UnpackerException Class Reference

#include <unpacker_exception.h>

Inheritance diagram for retdec::unpacker::UnpackerException:
Inheritance graph
[legend]
Collaboration diagram for retdec::unpacker::UnpackerException:
Collaboration graph
[legend]

Public Member Functions

 UnpackerException (const UnpackerException &ex)
 
virtual const char * what () const noexcept override
 
const std::string & getMessage () const noexcept
 

Protected Member Functions

template<typename... Args>
 UnpackerException (const Args &... args)
 

Private Member Functions

template<typename T , typename... Args>
void buildMessage (std::stringstream &ss, const T &data, const Args &... args)
 
void buildMessage (std::stringstream &)
 

Private Attributes

std::string _msg
 Exception message. More...
 

Detailed Description

Base class for all unpacker exceptions. It provides the message that can be bound to the exception.

Constructor & Destructor Documentation

◆ UnpackerException() [1/2]

retdec::unpacker::UnpackerException::UnpackerException ( const UnpackerException ex)
inline

Copy constructor.

Parameters
exAnother UnpackerException object.

◆ UnpackerException() [2/2]

template<typename... Args>
retdec::unpacker::UnpackerException::UnpackerException ( const Args &...  args)
inlineexplicitprotected

Member Function Documentation

◆ buildMessage() [1/2]

void retdec::unpacker::UnpackerException::buildMessage ( std::stringstream &  )
inlineprivate

◆ buildMessage() [2/2]

template<typename T , typename... Args>
void retdec::unpacker::UnpackerException::buildMessage ( std::stringstream &  ss,
const T &  data,
const Args &...  args 
)
inlineprivate

◆ getMessage()

const std::string& retdec::unpacker::UnpackerException::getMessage ( ) const
inlinenoexcept

Provides exception message.

Returns
Exception message.

◆ what()

virtual const char* retdec::unpacker::UnpackerException::what ( ) const
inlineoverridevirtualnoexcept

Override of what() method from std::exception. Provides C-string of exception message.

Returns
C-string exception message.

Member Data Documentation

◆ _msg

std::string retdec::unpacker::UnpackerException::_msg
private

Exception message.


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