util/Exception: rename FullMessage() to GetFullMessage()

This commit is contained in:
Max Kellermann 2017-07-05 12:25:55 +02:00
parent bce89feb13
commit 3cfefa53f7
4 changed files with 5 additions and 5 deletions

View File

@ -147,5 +147,5 @@ void
PrintError(Response &r, std::exception_ptr ep)
{
LogError(ep);
r.Error(ToAck(ep), FullMessage(ep).c_str());
r.Error(ToAck(ep), GetFullMessage(ep).c_str());
}

View File

@ -196,7 +196,7 @@ handle_status(Client &client, gcc_unused Request args, Response &r)
pc.LockCheckRethrowError();
} catch (...) {
r.Format(COMMAND_STATUS_ERROR ": %s\n",
FullMessage(std::current_exception()).c_str());
GetFullMessage(std::current_exception()).c_str());
}
song = playlist.GetNextPosition();

View File

@ -32,7 +32,7 @@
#include <stdexcept>
std::string
FullMessage(std::exception_ptr ep) noexcept
GetFullMessage(std::exception_ptr ep) noexcept
{
try {
std::rethrow_exception(ep);
@ -42,7 +42,7 @@ FullMessage(std::exception_ptr ep) noexcept
return e.what();
} catch (...) {
return std::string(e.what()) + "; " +
FullMessage(std::current_exception());
GetFullMessage(std::current_exception());
}
}

View File

@ -38,6 +38,6 @@
* exceptions (if any).
*/
std::string
FullMessage(std::exception_ptr ep) noexcept;
GetFullMessage(std::exception_ptr ep) noexcept;
#endif