CatapultServer  v0.5.0.1 (Elephant)
ExceptionLogging.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include <boost/exception/diagnostic_information.hpp>
23 
24 namespace catapult { namespace utils {
25 
27 #define EXCEPTION_DIAGNOSTIC_MESSAGE() std::endl << boost::current_exception_diagnostic_information()
28 
30 #define UNHANDLED_EXCEPTION_MESSAGE(ACTION) "unhandled exception while " << ACTION << "!" << EXCEPTION_DIAGNOSTIC_MESSAGE()
31 }}
32 
catapult::extensions::ExtensionManager::addServiceRegistrar
void addServiceRegistrar(std::unique_ptr< ServiceRegistrar > &&pServiceRegistrar)
Adds a service registrar (pServiceRegistrar).
Definition: ExtensionManager.cpp:42
catapult::validators::Notification
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
RegisterExtension
PLUGIN_API void RegisterExtension(catapult::extensions::ProcessBootstrapper &bootstrapper)
Entry point for registering a dynamic extension module with bootstrapper.
Definition: EventSourceExtension.cpp:35
Validators.h
PLUGIN_API
#define PLUGIN_API
Definition: plugins.h:30
catapult::extensions::ProcessBootstrapper::extensionManager
ExtensionManager & extensionManager()
Gets the extension manager.
Definition: ProcessBootstrapper.cpp:67
catapult::validators::ValidationResult::Success
Validation succeeded.
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::extensions::ProcessBootstrapper
Process bootstrapper.
Definition: ProcessBootstrapper.h:42
catapult::validators::DEFINE_STATELESS_VALIDATOR
DEFINE_STATELESS_VALIDATOR(TransactionFee, [](const auto &notification) { if(notification.Fee > notification.MaxFee) return Failure_Core_Invalid_Transaction_Fee;constexpr auto Max_Raw_Block_Fee_Multiplier=static_cast< uint64_t >(std::numeric_limits< BlockFeeMultiplier::ValueType >::max());return notification.MaxFee.unwrap() > Max_Raw_Block_Fee_Multiplier *notification.TransactionSize ? Failure_Core_Invalid_Transaction_Fee :ValidationResult::Success;})
ProcessBootstrapper.h
ApiNetworkPacketWritersService.h