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
@@ -25,8 +25,9 @@
|
||||
*/
|
||||
|
||||
#include <BeastConfig.h>
|
||||
|
||||
#include <ripple/basics/contract.h>
|
||||
#include <ripple/core/SociDB.h>
|
||||
#include <soci/sqlite3/soci-sqlite3.h>
|
||||
|
||||
// dummy soci-backend
|
||||
namespace soci {
|
||||
@@ -34,7 +35,8 @@ namespace dynamic_backends {
|
||||
// used internally by session
|
||||
backend_factory const& get (std::string const& name)
|
||||
{
|
||||
throw std::runtime_error ("Not Supported");
|
||||
ripple::Throw<std::runtime_error> ("Not Supported");
|
||||
return std::ref(soci::sqlite3); // Silence compiler warning.
|
||||
};
|
||||
|
||||
// provided for advanced user-level management
|
||||
|
||||
Reference in New Issue
Block a user