mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Convert throws and catch alls (RIPD-1046)
This commit is contained in:
committed by
Nik Bougalis
parent
0633ef1ba1
commit
880f354b90
@@ -18,6 +18,7 @@
|
||||
//==============================================================================
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/basics/contract.h>
|
||||
#include <ripple/protocol/STAccount.h>
|
||||
#include <ripple/protocol/STAmount.h>
|
||||
#include <ripple/protocol/STArray.h>
|
||||
@@ -142,7 +143,7 @@ STVar::STVar (SerialIter& sit, SField const& name)
|
||||
case STI_OBJECT: construct<STObject>(sit, name); return;
|
||||
case STI_ARRAY: construct<STArray>(sit, name); return;
|
||||
default:
|
||||
throw std::runtime_error ("Unknown object type");
|
||||
Throw<std::runtime_error> ("Unknown object type");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,7 +168,7 @@ STVar::STVar (SerializedTypeID id, SField const& name)
|
||||
case STI_OBJECT: construct<STObject>(name); return;
|
||||
case STI_ARRAY: construct<STArray>(name); return;
|
||||
default:
|
||||
throw std::runtime_error ("Unknown object type");
|
||||
Throw<std::runtime_error> ("Unknown object type");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user