HerdSoftware  0.1.1
Public Member Functions | Private Attributes | List of all members
Herd::Exception Class Reference

#include <Exception.h>

Inheritance diagram for Herd::Exception:
Herd::Line2D::Degenerate Herd::Line::ParallelToZ

Public Member Functions

 Exception (std::string msg="")
 
const char * what () const noexcept override
 The error message. More...
 

Private Attributes

std::string _what
 

Detailed Description

Base class for HerdSoftware exceptions.

This class adds some common utilities to std::exception, like the setting of the return value of what() in the constructor.

Do not throw this class to signal a failure in memory allocation.

Constructor & Destructor Documentation

◆ Exception()

Herd::Exception::Exception ( std::string  msg = "")
inline

Constructor.

Parameters
msgthe message to be returned by what().

Member Function Documentation

◆ what()

const char* Herd::Exception::what ( ) const
inlineoverridenoexcept

The error message.

Returns
the error message'

Member Data Documentation

◆ _what

std::string Herd::Exception::_what
private

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