command/AllCommands: catch and report std::exception
This commit is contained in:
@@ -23,6 +23,10 @@
|
||||
#include "CommandResult.hxx"
|
||||
#include "PlaylistError.hxx"
|
||||
|
||||
namespace std {
|
||||
class exception;
|
||||
}
|
||||
|
||||
class Response;
|
||||
class Error;
|
||||
|
||||
@@ -35,4 +39,7 @@ print_playlist_result(Response &r, PlaylistResult result);
|
||||
CommandResult
|
||||
print_error(Response &r, const Error &error);
|
||||
|
||||
void
|
||||
PrintError(Response &r, const std::exception &e);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user