#include <exception.hpp>
Definition at line 210 of file exception.hpp.
◆ instance()
Definition at line 239 of file exception.hpp.
240 {
241 static exception_factory once;
242 return once;
243 }
◆ register_exception()
void fc::exception_factory::register_exception |
( |
| ) |
|
|
inline |
Definition at line 228 of file exception.hpp.
229 {
230 static exception_builder<T> builder;
231 auto itr = _registered_exceptions.find( T::code_value );
232 assert( itr == _registered_exceptions.end() );
233 (void)itr;
234 _registered_exceptions[T::code_value] = &builder;
235 }
◆ rethrow()
Definition at line 247 of file exception.cpp.
248 {
249 auto itr = _registered_exceptions.find( e.code() );
250 if( itr != _registered_exceptions.end() )
251 itr->second->rethrow( e );
252 throw e;
253 }
The documentation for this class was generated from the following files: