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
@@ -20,6 +20,7 @@
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/protocol/STPathSet.h>
|
||||
#include <ripple/protocol/JsonFields.h>
|
||||
#include <ripple/basics/contract.h>
|
||||
#include <ripple/basics/Log.h>
|
||||
#include <ripple/basics/strHex.h>
|
||||
#include <ripple/basics/StringUtilities.h>
|
||||
@@ -65,7 +66,7 @@ STPathSet::STPathSet (SerialIter& sit, SField const& name)
|
||||
{
|
||||
WriteLog (lsINFO, STBase)
|
||||
<< "STPathSet: Empty path.";
|
||||
throw std::runtime_error ("empty path");
|
||||
Throw<std::runtime_error> ("empty path");
|
||||
}
|
||||
|
||||
push_back (path);
|
||||
@@ -79,7 +80,7 @@ STPathSet::STPathSet (SerialIter& sit, SField const& name)
|
||||
WriteLog (lsINFO, STBase)
|
||||
<< "STPathSet: Bad path element: " << iType;
|
||||
|
||||
throw std::runtime_error ("bad path element");
|
||||
Throw<std::runtime_error> ("bad path element");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user