URY playd
C++ minimalist audio player
Error Class Reference

A playd exception. More...

#include <errors.hpp>

+ Inheritance diagram for Error:
+ Collaboration diagram for Error:

Public Member Functions

 Error (const std::string &msg)
 Constructs an Error. More...
 
const std::string & Message () const
 The human-readable message for this error. More...
 

Private Attributes

std::string message
 The human-readable message for this Error.
 

Detailed Description

A playd exception.

Definition at line 19 of file errors.hpp.

Constructor & Destructor Documentation

§ Error()

Error::Error ( const std::string &  msg)

Constructs an Error.

Parameters
msgThe human-readable message of the error.

Definition at line 12 of file errors.cpp.

12  : message(msg)
13 {
14 }
std::string message
The human-readable message for this Error.
Definition: errors.hpp:35

Member Function Documentation

§ Message()

const std::string & Error::Message ( ) const

The human-readable message for this error.

Returns
A reference to the string describing this Error.

Definition at line 16 of file errors.cpp.

References message.

Referenced by Player::Load(), main(), Player::Pos(), and Player::SetPlaying().

17 {
18  return this->message;
19 }
std::string message
The human-readable message for this Error.
Definition: errors.hpp:35

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