mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
LLL: support passing error reasons
This commit is contained in:
parent
979d18f19c
commit
b269202b73
@ -51,6 +51,11 @@ private:
|
|||||||
void finalise(CompilerState const& _cs);
|
void finalise(CompilerState const& _cs);
|
||||||
|
|
||||||
template <class T> void error() const { BOOST_THROW_EXCEPTION(T() ); }
|
template <class T> void error() const { BOOST_THROW_EXCEPTION(T() ); }
|
||||||
|
template <class T> void error(std::string const& reason) const {
|
||||||
|
auto err = T();
|
||||||
|
err << errinfo_comment(reason);
|
||||||
|
BOOST_THROW_EXCEPTION(err);
|
||||||
|
}
|
||||||
void constructOperation(sp::utree const& _t, CompilerState& _s);
|
void constructOperation(sp::utree const& _t, CompilerState& _s);
|
||||||
|
|
||||||
bool m_finalised = false;
|
bool m_finalised = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user