GridFire v0.7.0-alpha
General Purpose Nuclear Network
Loading...
Searching...
No Matches
gridfire::exceptions::PolicyError Class Reference

Base class for all exceptions related to network policy operations. More...

#include <error_policy.h>

Inheritance diagram for gridfire::exceptions::PolicyError:
[legend]
Collaboration diagram for gridfire::exceptions::PolicyError:
[legend]

Public Member Functions

 PolicyError (const std::string &msg)
 Constructs a PolicyError with a descriptive message.
 
const char * what () const noexcept override
 Returns the explanatory string.
 

Private Attributes

std::string m_message
 

Detailed Description

Base class for all exceptions related to network policy operations.

This exception is the parent for more specific policy-related errors. Catching this type will catch any exception originating from the policy system.

Constructor & Destructor Documentation

◆ PolicyError()

gridfire::exceptions::PolicyError::PolicyError ( const std::string & msg)
inlineexplicit

Constructs a PolicyError with a descriptive message.

Parameters
msgThe error message.

Member Function Documentation

◆ what()

const char * gridfire::exceptions::PolicyError::what ( ) const
inlinenodiscardoverridenoexcept

Returns the explanatory string.

Returns
A C-style string with the error message.

Member Data Documentation

◆ m_message

std::string gridfire::exceptions::PolicyError::m_message
private

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