4
0
mirror of https://github.com/QuasarApp/SoundBand.git synced 2025-05-10 14:09:34 +00:00

59 lines
1.1 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef EXAPTIONS_H
#define EXAPTIONS_H
#include <exception>
#include <QString>
#include <QTranslator>
/**
* @brief The MediaException class
*/
class MediaException:public std::exception
{
public:
QString what(){
return QObject::tr("Your operating system or platform has not supported media files.");
}
};
class AddNodeExaption:public std::exception
{
public:
QString what(){
return QObject::tr("Address not available");
}
};
class CreatePackageExaption:public std::exception
{
public:
QString what(){
return QObject::tr("Сould not generate network packet");
}
};
class BadAnswerExaption:public std::exception
{
public:
QString what(){
return QObject::tr("could not parse message nodes.");
}
};
class BrodcastConflict:public std::exception
{
public:
QString what(){
return QObject::tr("The server received the packet from the server.");
}
};
class SyncError:public std::exception
{
public:
QString what(){
return QObject::tr("The playlist is empty, the player has nothing to play.");
}
};
#endif // EXAPTIONS_H