|
|
@ -35,42 +35,45 @@ using errinfo_field = boost::error_info<struct tag_field, int>; |
|
|
|
using errinfo_data = boost::error_info<struct tag_data, std::string>; |
|
|
|
using errinfo_nonce = boost::error_info<struct tag_nonce, h64>; |
|
|
|
using errinfo_difficulty = boost::error_info<struct tag_difficulty, u256>; |
|
|
|
using errinfo_target = boost::error_info<struct tag_target, h256>; |
|
|
|
using errinfo_seedHash = boost::error_info<struct tag_seedHash, h256>; |
|
|
|
using errinfo_mixHash = boost::error_info<struct tag_mixHash, h256>; |
|
|
|
using errinfo_ethashResult = boost::error_info<struct tag_ethashResult, std::tuple<h256, h256>>; |
|
|
|
using BadFieldError = boost::tuple<errinfo_field, errinfo_data>; |
|
|
|
|
|
|
|
struct DatabaseAlreadyOpen: virtual dev::Exception {}; |
|
|
|
struct OutOfGasBase: virtual dev::Exception {}; |
|
|
|
struct OutOfGasIntrinsic: virtual dev::Exception {}; |
|
|
|
struct NotEnoughAvailableSpace: virtual dev::Exception {}; |
|
|
|
struct NotEnoughCash: virtual dev::Exception {}; |
|
|
|
struct GasPriceTooLow: virtual dev::Exception {}; |
|
|
|
struct BlockGasLimitReached: virtual dev::Exception {}; |
|
|
|
struct NoSuchContract: virtual dev::Exception {}; |
|
|
|
struct ContractAddressCollision: virtual dev::Exception {}; |
|
|
|
struct FeeTooSmall: virtual dev::Exception {}; |
|
|
|
struct TooMuchGasUsed: virtual dev::Exception {}; |
|
|
|
struct ExtraDataTooBig: virtual dev::Exception {}; |
|
|
|
struct InvalidSignature: virtual dev::Exception {}; |
|
|
|
struct InvalidBlockFormat: virtual dev::Exception {}; |
|
|
|
struct InvalidUnclesHash: virtual dev::Exception {}; |
|
|
|
struct TooManyUncles: virtual dev::Exception {}; |
|
|
|
struct UncleTooOld: virtual dev::Exception {}; |
|
|
|
struct UncleIsBrother: virtual dev::Exception {}; |
|
|
|
struct UncleInChain: virtual dev::Exception {}; |
|
|
|
struct InvalidStateRoot: virtual dev::Exception {}; |
|
|
|
struct InvalidGasUsed: virtual dev::Exception {}; |
|
|
|
struct InvalidTransactionsRoot: virtual dev::Exception {}; |
|
|
|
struct InvalidDifficulty: virtual dev::Exception {}; |
|
|
|
struct InvalidGasLimit: virtual dev::Exception {}; |
|
|
|
struct InvalidReceiptsStateRoot: virtual dev::Exception {}; |
|
|
|
struct InvalidTimestamp: virtual dev::Exception {}; |
|
|
|
struct InvalidLogBloom: virtual dev::Exception {}; |
|
|
|
struct InvalidNonce: virtual dev::Exception {}; |
|
|
|
struct InvalidBlockHeaderItemCount: virtual dev::Exception {}; |
|
|
|
struct InvalidBlockNonce: virtual dev::Exception {}; |
|
|
|
struct InvalidParentHash: virtual dev::Exception {}; |
|
|
|
struct InvalidNumber: virtual dev::Exception {}; |
|
|
|
struct InvalidContractAddress: virtual public dev::Exception {}; |
|
|
|
struct DAGCreationFailure: virtual public dev::Exception {}; |
|
|
|
struct DAGComputeFailure: virtual public dev::Exception {}; |
|
|
|
DEV_SIMPLE_EXCEPTION(OutOfGasBase); |
|
|
|
DEV_SIMPLE_EXCEPTION(OutOfGasIntrinsic); |
|
|
|
DEV_SIMPLE_EXCEPTION(NotEnoughAvailableSpace); |
|
|
|
DEV_SIMPLE_EXCEPTION(NotEnoughCash); |
|
|
|
DEV_SIMPLE_EXCEPTION(GasPriceTooLow); |
|
|
|
DEV_SIMPLE_EXCEPTION(BlockGasLimitReached); |
|
|
|
DEV_SIMPLE_EXCEPTION(FeeTooSmall); |
|
|
|
DEV_SIMPLE_EXCEPTION(TooMuchGasUsed); |
|
|
|
DEV_SIMPLE_EXCEPTION(ExtraDataTooBig); |
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidSignature); |
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidBlockFormat); |
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidUnclesHash); |
|
|
|
DEV_SIMPLE_EXCEPTION(TooManyUncles); |
|
|
|
DEV_SIMPLE_EXCEPTION(UncleTooOld); |
|
|
|
DEV_SIMPLE_EXCEPTION(UncleIsBrother); |
|
|
|
DEV_SIMPLE_EXCEPTION(UncleInChain); |
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidStateRoot); |
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidGasUsed); |
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidTransactionsRoot); |
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidDifficulty); |
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidGasLimit); |
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidReceiptsStateRoot); |
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidTimestamp); |
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidLogBloom); |
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidNonce); |
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidBlockHeaderItemCount); |
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidBlockNonce); |
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidParentHash); |
|
|
|
DEV_SIMPLE_EXCEPTION(InvalidNumber); |
|
|
|
|
|
|
|
DEV_SIMPLE_EXCEPTION(DatabaseAlreadyOpen); |
|
|
|
DEV_SIMPLE_EXCEPTION(DAGCreationFailure); |
|
|
|
DEV_SIMPLE_EXCEPTION(DAGComputeFailure); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|