Data Structures Class Templates
Various data structures implemented using c++ class templates.
Public Member Functions | Protected Attributes | List of all members
StackError Class Reference

Base class for all Stack related exceptions. More...

#include <stackerror.h>

Inheritance diagram for StackError:
Inheritance graph
[legend]
Collaboration diagram for StackError:
Collaboration graph
[legend]

Public Member Functions

 StackError (const char *msg="StackError")
 Constructor. More...
 
const char * what () const noexcept
 Overridden what() method from std::runtime_error. More...
 

Protected Attributes

std::string msg
 

Detailed Description

Base class for all Stack related exceptions.

Constructor & Destructor Documentation

◆ StackError()

StackError::StackError ( const char *  msg = "StackError")
inline

Constructor.

Parameters
msgError message

Member Function Documentation

◆ what()

const char* StackError::what ( ) const
inlinenoexcept

Overridden what() method from std::runtime_error.

Returns
Error message as const char*.

Member Data Documentation

◆ msg

std::string StackError::msg
protected

Error message


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