mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-03 00:29:35 +02:00
exception
git-svn-id: svn://elaine/murooma/trunk@316 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
fd3b671633
commit
8afca63ded
4 changed files with 45 additions and 21 deletions
26
common/snapException.h
Normal file
26
common/snapException.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
#ifndef SNAP_EXCEPTION_H
|
||||
#define SNAP_EXCEPTION_H
|
||||
|
||||
#include <exception>
|
||||
#include <string>
|
||||
|
||||
|
||||
struct snapException : std::exception {
|
||||
snapException(const std::string& what) noexcept
|
||||
{
|
||||
what_ = what;
|
||||
}
|
||||
|
||||
const char* what() const noexcept
|
||||
{
|
||||
return what_.c_str();
|
||||
}
|
||||
|
||||
private:
|
||||
std::string what_;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue