10 #ifndef PLAYD_ERRORS_HPP 11 #define PLAYD_ERRORS_HPP 26 Error(
const std::string &msg);
32 const std::string &
Message()
const;
145 std::cerr << oss.str();
154 template <
typename T>
178 #endif // PLAYD_ERRORS_HPP
InternalError(const std::string &msg)
Constructs an InternalError.
NetError(const std::string &msg)
Constructs a NetError.
NoAudioError(const std::string &msg)
Constructs an NoAudioError.
std::ostringstream oss
Stream buffer (avoids theoretical threading issues).
FileError(const std::string &msg)
Constructs a FileError.
An Error signifying that playd can't read a file.
const std::string & Message() const
The human-readable message for this error.
Error(const std::string &msg)
Constructs an Error.
Debug & operator<<(std::ostream &(*pf)(std::ostream &))
Specialisation for std::endl, which is actually a function pointer.
ConfigError(const std::string &msg)
Constructs an ConfigError.
An Error signifying that playd has been improperly configured.
An Error signifying that playd can't seek in a file.
Debug & operator<<(const T &x)
Stream operator for shoving objects onto a screen somewhere.
Class for telling the human what playd is doing.
An Error signifying that playd has hit an internal snag.
SeekError(const std::string &msg)
Constructs a SeekError.
std::string message
The human-readable message for this Error.
An Error signifying that no audio is loaded.