Convert throws and catch alls (RIPD-1046)

This commit is contained in:
Miguel Portilla
2015-11-11 10:47:21 -05:00
committed by Nik Bougalis
parent 0633ef1ba1
commit 880f354b90
127 changed files with 786 additions and 710 deletions

View File

@@ -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;
}