Skip to content
This repository was archived by the owner on Apr 24, 2022. It is now read-only.

Commit 6830f46

Browse files
committedJul 3, 2017
Remove unused exception types
1 parent 8258dcc commit 6830f46

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed
 

‎libdevcore/Exceptions.h

-17
Original file line numberDiff line numberDiff line change
@@ -53,31 +53,14 @@ DEV_SIMPLE_EXCEPTION_RLP(OversizeRLP);
5353
DEV_SIMPLE_EXCEPTION_RLP(UndersizeRLP);
5454

5555
DEV_SIMPLE_EXCEPTION(BadHexCharacter);
56-
DEV_SIMPLE_EXCEPTION(NoNetworking);
57-
DEV_SIMPLE_EXCEPTION(NoUPnPDevice);
58-
DEV_SIMPLE_EXCEPTION(RootNotFound);
59-
struct BadRoot: virtual Exception { public: BadRoot(h256 const& _root): Exception("BadRoot " + _root.hex()), root(_root) {} h256 root; };
60-
DEV_SIMPLE_EXCEPTION(FileError);
61-
DEV_SIMPLE_EXCEPTION(Overflow);
62-
DEV_SIMPLE_EXCEPTION(FailedInvariant);
63-
DEV_SIMPLE_EXCEPTION(ValueTooLarge);
6456

65-
struct InterfaceNotSupported: virtual Exception { public: InterfaceNotSupported(std::string _f): Exception("Interface " + _f + " not supported.") {} };
6657
struct ExternalFunctionFailure: virtual Exception { public: ExternalFunctionFailure(std::string _f): Exception("Function " + _f + "() failed.") {} };
6758

6859
// error information to be added to exceptions
6960
using errinfo_invalidSymbol = boost::error_info<struct tag_invalidSymbol, char>;
70-
using errinfo_wrongAddress = boost::error_info<struct tag_address, std::string>;
7161
using errinfo_comment = boost::error_info<struct tag_comment, std::string>;
7262
using errinfo_required = boost::error_info<struct tag_required, bigint>;
7363
using errinfo_got = boost::error_info<struct tag_got, bigint>;
74-
using errinfo_min = boost::error_info<struct tag_min, bigint>;
75-
using errinfo_max = boost::error_info<struct tag_max, bigint>;
7664
using RequirementError = boost::tuple<errinfo_required, errinfo_got>;
77-
using errinfo_hash256 = boost::error_info<struct tag_hash, h256>;
78-
using errinfo_required_h256 = boost::error_info<struct tag_required_h256, h256>;
79-
using errinfo_got_h256 = boost::error_info<struct tag_get_h256, h256>;
80-
using Hash256RequirementError = boost::tuple<errinfo_required_h256, errinfo_got_h256>;
81-
using errinfo_extraData = boost::error_info<struct tag_extraData, bytes>;
8265

8366
}

0 commit comments

Comments
 (0)
This repository has been archived.