2015-04-24 15:35:16 +00:00
|
|
|
/*
|
2016-11-18 23:13:20 +00:00
|
|
|
This file is part of solidity.
|
2015-04-24 15:35:16 +00:00
|
|
|
|
2016-11-18 23:13:20 +00:00
|
|
|
solidity is free software: you can redistribute it and/or modify
|
2015-04-24 15:35:16 +00:00
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
2016-11-18 23:13:20 +00:00
|
|
|
solidity is distributed in the hope that it will be useful,
|
2015-04-24 15:35:16 +00:00
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2016-11-18 23:13:20 +00:00
|
|
|
along with solidity. If not, see <http://www.gnu.org/licenses/>.
|
2015-04-24 15:35:16 +00:00
|
|
|
*/
|
|
|
|
/** @file Exceptions.h
|
|
|
|
* @author Christian <c@ethdev.com>
|
|
|
|
* @date 2014
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-01-06 10:52:23 +00:00
|
|
|
#include <libsolutil/Exceptions.h>
|
2015-04-24 15:35:16 +00:00
|
|
|
|
2019-12-11 16:31:36 +00:00
|
|
|
namespace solidity::evmasm
|
2015-04-24 15:35:16 +00:00
|
|
|
{
|
|
|
|
|
2019-12-11 16:31:36 +00:00
|
|
|
struct AssemblyException: virtual util::Exception {};
|
2015-04-24 15:35:16 +00:00
|
|
|
struct OptimizerException: virtual AssemblyException {};
|
|
|
|
struct StackTooDeepException: virtual OptimizerException {};
|
2015-08-18 17:41:47 +00:00
|
|
|
struct ItemNotAvailableException: virtual OptimizerException {};
|
2015-04-24 15:35:16 +00:00
|
|
|
|
2019-11-20 19:32:52 +00:00
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidDeposit);
|
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidOpcode);
|
|
|
|
|
2015-04-24 15:35:16 +00:00
|
|
|
}
|