peary::utils::Exception

Base exception class for Peary. More…

#include <peary/utils/exceptions.hpp>

Inherits from std::exception

Inherited by peary::utils::LogicError, peary::utils::RuntimeError

Public Functions

Name
Exception(std::string what_arg)Constructor for Exception.
const char * what() const overrideReturn the error message.

Protected Functions

Name
Exception() =defaultDefault constructor for Exception.

Protected Attributes

Name
std::string _message

Detailed Description

  class peary::utils::Exception;
  

Base exception class for Peary.

This class is used as a base for all exceptions in the Peary library. It provides a standard way to represent error messages.

Public Functions Documentation

function Exception

  inline explicit Exception(
    std::string what_arg
)
  

Constructor for Exception.

Parameters:

  • what_arg The error message to be associated with the exception

function what

  inline const char * what() const override
  

Return the error message.

Return: A C-style string containing the error message

Protected Functions Documentation

function Exception

  Exception() =default
  

Default constructor for Exception.

Protected Attributes Documentation

variable _message

  std::string _message;
  

Updated on 2025-11-14 at 11:31:23 +0100