kodi
Public Member Functions | Protected Member Functions | List of all members
XbmcCommons::Exception Class Reference

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

#include <Exception.h>

Inheritance diagram for XbmcCommons::Exception:
Inheritance graph
[legend]

Public Member Functions

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)
 This method is called from the constructor of subclasses. More...
 
void SetMessage (const char *fmt,...) XBMCCOMMONS_ATTRIB_EXCEPTION_FORMAT
 This message can be called from the constructor of subclasses. More...
 
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.

Member Function Documentation

◆ 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

◆ 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: