34 lines
794 B
C++
34 lines
794 B
C++
|
|
/*
|
|||
|
|
* ExceptionStatus.cpp
|
|||
|
|
*
|
|||
|
|
* Created on: 10 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>. 2020 <EFBFBD>.
|
|||
|
|
* 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) {}
|
|||
|
|
|