Skip to content

Commit

Permalink
fix Exception (#14)
Browse files Browse the repository at this point in the history
* fix Exception

* update version
  • Loading branch information
cyjseagull authored Mar 25, 2022
1 parent f12788a commit 90c37c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ HunterGate(
FILEPATH "${BCOS_UTILITIES_CMAKE_DIR}/config.cmake"
)
project(bcos-utilities VERSION "1.0.0")
set(VERSION_SUFFIX "-rc1")
set(VERSION_SUFFIX "-rc2")

# basic settings
include(Options)
Expand Down
7 changes: 3 additions & 4 deletions bcos-utilities/Exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ struct Exception : virtual std::exception, virtual boost::exception
};

/// construct a new exception class overriding Exception
#define DERIVE_BCOS_EXCEPTION(X) \
struct X : virtual Exception \
{ \
explicit X(std::string _m = std::string()) : Exception(_m){}; \
#define DERIVE_BCOS_EXCEPTION(X) \
struct X : virtual Exception \
{ \
}
DERIVE_BCOS_EXCEPTION(ConstructFixedBytesFailed);
DERIVE_BCOS_EXCEPTION(BadCast);
Expand Down

0 comments on commit 90c37c2

Please sign in to comment.