34 lines
799 B
C++
34 lines
799 B
C++
/*
|
||
* ExceptionStatus.cpp
|
||
*
|
||
* Created on: 10 сент. 2020 г.
|
||
* Author: LeonidTitov
|
||
*/
|
||
|
||
#include "ExceptionStatus.hh"
|
||
|
||
#include "../../systemic/StatusLazyFast.hpp"
|
||
|
||
|
||
bool application::basic::ExceptionStatus::input( Environment & env ) {
|
||
|
||
return true;
|
||
|
||
}
|
||
|
||
void application::basic::ExceptionStatus::build( Environment & env ) {
|
||
|
||
if(links.system_exception){
|
||
typedef systemic::detail::StatusLazyFast<systemic::ExceptionInfo, &systemic::ExceptionInfo::raised> ExceptionRisen;
|
||
|
||
ExceptionRisen * exception_risen = memories::instance_object<ExceptionRisen>( env.static_data_ma, env.exception );
|
||
|
||
env.statuses.add( links.system_exception, exception_risen );
|
||
}
|
||
|
||
|
||
}
|
||
|
||
application::basic::ExceptionStatus::ExceptionStatus( const Links & links ) : links(links) {}
|
||
|