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 @@
|
||||
#ifndef RIPPLE_PROTOCOL_STBASE_H_INCLUDED
|
||||
#define RIPPLE_PROTOCOL_STBASE_H_INCLUDED
|
||||
|
||||
#include <ripple/basics/contract.h>
|
||||
#include <ripple/protocol/SField.h>
|
||||
#include <ripple/protocol/Serializer.h>
|
||||
#include <ostream>
|
||||
@@ -91,7 +92,7 @@ public:
|
||||
{
|
||||
D* ptr = dynamic_cast<D*> (this);
|
||||
if (ptr == nullptr)
|
||||
throw std::bad_cast();
|
||||
Throw<std::bad_cast> ();
|
||||
return *ptr;
|
||||
}
|
||||
|
||||
@@ -101,7 +102,7 @@ public:
|
||||
{
|
||||
D const * ptr = dynamic_cast<D const*> (this);
|
||||
if (ptr == nullptr)
|
||||
throw std::bad_cast();
|
||||
Throw<std::bad_cast> ();
|
||||
return *ptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user