protocol/Ack: add exception class wrapping enum ack
This commit is contained in:
@@ -165,6 +165,8 @@ PrintError(Response &r, const std::exception &e)
|
||||
|
||||
try {
|
||||
throw e;
|
||||
} catch (const ProtocolError &pe) {
|
||||
r.Error(pe.GetCode(), pe.what());
|
||||
} catch (const PlaylistError &pe) {
|
||||
r.Error(ToAck(pe.GetCode()), pe.what());
|
||||
} catch (const std::system_error &) {
|
||||
|
Reference in New Issue
Block a user