Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Introduce error codes to SFV #1817

Merged
merged 19 commits into from
Nov 8, 2018
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions irohad/ametsuchi/command_executor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace shared_model {
class SetQuorum;
class SubtractAssetQuantity;
class TransferAsset;
} // namespace interface
} // namespace interface
} // namespace shared_model

namespace iroha {
Expand All @@ -38,8 +38,11 @@ namespace iroha {
* Contains command name, as well as an error message
*/
struct CommandError {
using ErrorCodeType = uint32_t;

std::string command_name;
std::string error_message;
ErrorCodeType error_code;
std::string error_extra;

std::string toString() const;
};
Expand Down
Loading