mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Convert throws and catch alls (RIPD-1046)
This commit is contained in:
committed by
Nik Bougalis
parent
0633ef1ba1
commit
880f354b90
@@ -46,6 +46,7 @@
|
||||
#include <ripple/app/paths/PathRequests.h>
|
||||
#include <ripple/app/misc/UniqueNodeList.h>
|
||||
#include <ripple/app/tx/apply.h>
|
||||
#include <ripple/basics/contract.h>
|
||||
#include <ripple/basics/Log.h>
|
||||
#include <ripple/basics/ResolverAsio.h>
|
||||
#include <ripple/basics/Sustain.h>
|
||||
@@ -1047,7 +1048,7 @@ void ApplicationImp::setup()
|
||||
{
|
||||
m_journal.fatal << "Could not create Websocket for [" <<
|
||||
port.name << "]";
|
||||
throw std::exception();
|
||||
Throw<std::exception> ();
|
||||
}
|
||||
websocketServers_.emplace_back (std::move (server));
|
||||
}
|
||||
@@ -1526,7 +1527,7 @@ static bool schemaHas (
|
||||
if (static_cast<int> (schema.size ()) <= line)
|
||||
{
|
||||
JLOG (j.fatal) << "Schema for " << dbName << " has too few lines";
|
||||
throw std::runtime_error ("bad schema");
|
||||
Throw<std::runtime_error> ("bad schema");
|
||||
}
|
||||
|
||||
return schema[line].find (content) != std::string::npos;
|
||||
|
||||
Reference in New Issue
Block a user