BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface 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_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)
 

Macro Definition Documentation

#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 \
) \
op_name ## _evaluate_exception, \
graphene::chain::operation_evaluate_exception, \
3050000 + 100 * operation::tag< op_name ## _operation >::value \
)
#define FC_DECLARE_DERIVED_EXCEPTION(TYPE, BASE, CODE)
Definition: exception.hpp:226

Definition at line 32 of file exceptions.hpp.

#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 \
)
#define FC_DECLARE_DERIVED_EXCEPTION(TYPE, BASE, CODE)
Definition: exception.hpp:226

Definition at line 75 of file exceptions.hpp.

#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 \
)
#define FC_DECLARE_DERIVED_EXCEPTION(TYPE, BASE, CODE)
Definition: exception.hpp:226

Definition at line 58 of file exceptions.hpp.

#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" \
) \
op_name ## _evaluate_exception, \
graphene::chain::operation_evaluate_exception, \
3050000 + 100 * operation::tag< op_name ## _operation >::value, \
#op_name "_operation evaluation exception" \
)
#define FC_IMPLEMENT_DERIVED_EXCEPTION(TYPE, BASE, CODE, WHAT)
Definition: exception.hpp:249

Definition at line 44 of file exceptions.hpp.

#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 \
)
#define FC_IMPLEMENT_DERIVED_EXCEPTION(TYPE, BASE, CODE, WHAT)
Definition: exception.hpp:249

Definition at line 83 of file exceptions.hpp.

#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 \
)
#define FC_IMPLEMENT_DERIVED_EXCEPTION(TYPE, BASE, CODE, WHAT)
Definition: exception.hpp:249

Definition at line 66 of file exceptions.hpp.

#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 216 of file exceptions.hpp.

#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" ); \
}
#define elog(FORMAT,...)
Definition: logger.hpp:129
#define wlog(FORMAT,...)
Definition: logger.hpp:123
boost::signals2::signal< T > signal
Definition: signals.hpp:20

Definition at line 92 of file exceptions.hpp.