BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Namespaces | Macros | Functions
exceptions.hpp File Reference
#include <fc/exception/exception.hpp>
#include <graphene/protocol/exceptions.hpp>
#include <graphene/protocol/fee_schedule.hpp>
#include <graphene/protocol/operations.hpp>
#include <graphene/chain/types.hpp>

Go to the source code of this file.

Namespaces

 graphene
 
 graphene::chain
 

Macros

#define GRAPHENE_DECLARE_OP_BASE_EXCEPTIONS(op_name)
 
#define GRAPHENE_IMPLEMENT_OP_BASE_EXCEPTIONS(op_name)
 
#define GRAPHENE_DECLARE_OP_VALIDATE_EXCEPTION(exc_name, op_name, seqnum)
 
#define GRAPHENE_IMPLEMENT_OP_VALIDATE_EXCEPTION(exc_name, op_name, seqnum, msg)
 
#define GRAPHENE_DECLARE_OP_EVALUATE_EXCEPTION(exc_name, op_name, seqnum)
 
#define GRAPHENE_IMPLEMENT_OP_EVALUATE_EXCEPTION(exc_name, op_name, seqnum, msg)
 
#define GRAPHENE_TRY_NOTIFY(signal, ...)
 
#define GRAPHENE_RECODE_EXC(cause_type, effect_type)
 

Functions

 graphene::chain::GRAPHENE_DECLARE_OP_BASE_EXCEPTIONS (transfer)
 
 graphene::chain::GRAPHENE_DECLARE_OP_BASE_EXCEPTIONS (limit_order_create)
 
 graphene::chain::GRAPHENE_DECLARE_OP_BASE_EXCEPTIONS (limit_order_update)
 
 graphene::chain::GRAPHENE_DECLARE_OP_BASE_EXCEPTIONS (limit_order_cancel)
 
 graphene::chain::GRAPHENE_DECLARE_OP_BASE_EXCEPTIONS (call_order_update)
 
 graphene::chain::GRAPHENE_DECLARE_OP_BASE_EXCEPTIONS (account_create)
 
 graphene::chain::GRAPHENE_DECLARE_OP_BASE_EXCEPTIONS (account_update)
 
 graphene::chain::GRAPHENE_DECLARE_OP_BASE_EXCEPTIONS (asset_reserve)
 
 graphene::chain::GRAPHENE_DECLARE_OP_BASE_EXCEPTIONS (proposal_create)
 
 graphene::chain::GRAPHENE_DECLARE_OP_BASE_EXCEPTIONS (balance_claim)
 
 graphene::chain::GRAPHENE_DECLARE_OP_BASE_EXCEPTIONS (override_transfer)
 
 graphene::chain::GRAPHENE_DECLARE_OP_BASE_EXCEPTIONS (blind_transfer)
 
 graphene::chain::GRAPHENE_DECLARE_OP_BASE_EXCEPTIONS (liquidity_pool_exchange)
 

Macro Definition Documentation

◆ GRAPHENE_DECLARE_OP_BASE_EXCEPTIONS

#define GRAPHENE_DECLARE_OP_BASE_EXCEPTIONS (   op_name)
Value:
op_name ## _validate_exception, \
graphene::chain::operation_validate_exception, \
3040000 + 100 * operation::tag< op_name ## _operation >::value \
) \
FC_DECLARE_DERIVED_EXCEPTION( \
op_name ## _evaluate_exception, \
graphene::chain::operation_evaluate_exception, \
3050000 + 100 * operation::tag< op_name ## _operation >::value \
)

Definition at line 32 of file exceptions.hpp.

◆ GRAPHENE_DECLARE_OP_EVALUATE_EXCEPTION

#define GRAPHENE_DECLARE_OP_EVALUATE_EXCEPTION (   exc_name,
  op_name,
  seqnum 
)
Value:
op_name ## _ ## exc_name, \
graphene::chain::op_name ## _evaluate_exception, \
3050000 + 100 * operation::tag< op_name ## _operation >::value \
+ seqnum \
)

Definition at line 75 of file exceptions.hpp.

◆ GRAPHENE_DECLARE_OP_VALIDATE_EXCEPTION

#define GRAPHENE_DECLARE_OP_VALIDATE_EXCEPTION (   exc_name,
  op_name,
  seqnum 
)
Value:
op_name ## _ ## exc_name, \
graphene::chain::op_name ## _validate_exception, \
3040000 + 100 * operation::tag< op_name ## _operation >::value \
+ seqnum \
)

Definition at line 58 of file exceptions.hpp.

◆ GRAPHENE_IMPLEMENT_OP_BASE_EXCEPTIONS

#define GRAPHENE_IMPLEMENT_OP_BASE_EXCEPTIONS (   op_name)
Value:
op_name ## _validate_exception, \
graphene::chain::operation_validate_exception, \
3040000 + 100 * operation::tag< op_name ## _operation >::value, \
#op_name "_operation validation exception" \
) \
FC_IMPLEMENT_DERIVED_EXCEPTION( \
op_name ## _evaluate_exception, \
graphene::chain::operation_evaluate_exception, \
3050000 + 100 * operation::tag< op_name ## _operation >::value, \
#op_name "_operation evaluation exception" \
)

Definition at line 44 of file exceptions.hpp.

◆ GRAPHENE_IMPLEMENT_OP_EVALUATE_EXCEPTION

#define GRAPHENE_IMPLEMENT_OP_EVALUATE_EXCEPTION (   exc_name,
  op_name,
  seqnum,
  msg 
)
Value:
op_name ## _ ## exc_name, \
graphene::chain::op_name ## _evaluate_exception, \
3050000 + 100 * operation::tag< op_name ## _operation >::value \
+ seqnum, \
msg \
)

Definition at line 83 of file exceptions.hpp.

◆ GRAPHENE_IMPLEMENT_OP_VALIDATE_EXCEPTION

#define GRAPHENE_IMPLEMENT_OP_VALIDATE_EXCEPTION (   exc_name,
  op_name,
  seqnum,
  msg 
)
Value:
op_name ## _ ## exc_name, \
graphene::chain::op_name ## _validate_exception, \
3040000 + 100 * operation::tag< op_name ## _operation >::value \
+ seqnum, \
msg \
)

Definition at line 66 of file exceptions.hpp.

◆ GRAPHENE_RECODE_EXC

#define GRAPHENE_RECODE_EXC (   cause_type,
  effect_type 
)
Value:
catch( const cause_type& e ) \
{ throw( effect_type( e.what(), e.get_log() ) ); }

Definition at line 223 of file exceptions.hpp.

◆ GRAPHENE_TRY_NOTIFY

#define GRAPHENE_TRY_NOTIFY (   signal,
  ... 
)
Value:
try \
{ \
signal( __VA_ARGS__ ); \
} \
catch( const graphene::chain::plugin_exception& e ) \
{ \
elog( "Caught plugin exception: ${e}", ("e", e.to_detail_string() ) ); \
throw; \
} \
catch( ... ) \
{ \
wlog( "Caught unexpected exception in plugin" ); \
}

Definition at line 92 of file exceptions.hpp.

FC_DECLARE_DERIVED_EXCEPTION
#define FC_DECLARE_DERIVED_EXCEPTION(TYPE, BASE, CODE)
Definition: exception.hpp:226
FC_IMPLEMENT_DERIVED_EXCEPTION
#define FC_IMPLEMENT_DERIVED_EXCEPTION(TYPE, BASE, CODE, WHAT)
Definition: exception.hpp:249