Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
XbmcCommons::Exception Class Reference

#include <Exception.h>

Inheritance diagram for XbmcCommons::Exception:
XBMCAddon::UnhandledException XBMCAddon::UnimplementedException

Public Member Functions

virtual ~Exception ()
 
virtual void LogThrowMessage (const char *prefix=NULL) const
 
virtual const char * GetExMessage () const
 

Protected Member Functions

 Exception (const char *classname_)
 
 Exception (const char *classname_, const char *message_)
 
 Exception (const Exception &other)=default
 
void Set (const char *fmt, va_list &argList)
 
void SetMessage (const char *fmt,...) XBMCCOMMONS_ATTRIB_EXCEPTION_FORMAT
 
void setClassname (const char *cn)
 

Detailed Description

This class a superclass for exceptions that want to utilize some utility functionality including autologging with the specific exception name.

Constructor & Destructor Documentation

◆ Exception() [1/3]

XbmcCommons::Exception::Exception ( const char * classname_)
inlineexplicitprotected

◆ Exception() [2/3]

XbmcCommons::Exception::Exception ( const char * classname_,
const char * message_ )
inlineprotected

◆ Exception() [3/3]

XbmcCommons::Exception::Exception ( const Exception & other)
inlineprotecteddefault

◆ ~Exception()

XbmcCommons::Exception::~Exception ( )
virtualdefault

Member Function Documentation

◆ GetExMessage()

virtual const char * XbmcCommons::Exception::GetExMessage ( ) const
inlinevirtual

◆ LogThrowMessage()

void XbmcCommons::Exception::LogThrowMessage ( const char * prefix = NULL) const
virtual

◆ Set()

void XbmcCommons::Exception::Set ( const char * fmt,
va_list & argList )
inlineprotected

This method is called from the constructor of subclasses. It will set the message from varargs as well as call log message

◆ setClassname()

void XbmcCommons::Exception::setClassname ( const char * cn)
inlineprotected

◆ SetMessage()

void XbmcCommons::Exception::SetMessage ( const char * fmt,
... )
inlineprotected

This message can be called from the constructor of subclasses. It will set the message and log the throwing.


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