fourdst_plugin 0.0.1a
C++ Plugin Manager
Loading...
Searching...
No Matches
fourdst::plugin::exception::PluginError Class Reference

Base exception class for all plugin-related errors. More...

#include <exceptions.h>

Inheritance diagram for fourdst::plugin::exception::PluginError:
fourdst::plugin::exception::PluginLoadError fourdst::plugin::exception::PluginNameCollisionError fourdst::plugin::exception::PluginNotLoadedError fourdst::plugin::exception::PluginSymbolError fourdst::plugin::exception::PluginTypeError

Public Member Functions

 PluginError (std::string error_message)
 Construct a new PluginError with the given error message.
 
char const * what () const noexcept override
 Get the error message.
 

Protected Attributes

std::string m_error_message
 The error message string.
 

Detailed Description

Base exception class for all plugin-related errors.

This is the root exception class from which all other plugin exceptions derive. It provides a standard interface for error messages and inherits from std::exception to integrate with standard C++ exception handling.

Constructor & Destructor Documentation

◆ PluginError()

fourdst::plugin::exception::PluginError::PluginError ( std::string error_message)
inlineexplicit

Construct a new PluginError with the given error message.

Parameters
error_messageA descriptive message explaining the error condition

Member Function Documentation

◆ what()

char const * fourdst::plugin::exception::PluginError::what ( ) const
inlinenodiscardoverridenoexcept

Get the error message.

Returns
const char* A null-terminated string containing the error message
Exceptions
Neverthrows

Member Data Documentation

◆ m_error_message

std::string fourdst::plugin::exception::PluginError::m_error_message
protected

The error message string.


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