try \
{ \
UpdateServiceState( passServiceId, passServiceName, passNewState ); \
} \
catch( const std::exception& inner_ex_ ) \
{ \
AppException regex( "Failed to update service state", inner_ex_ ); \
regex.setPid( m_SessionId ); \
regex.setEventType( EventType::Error ); \
UploadMessage( regex ); \
return; \
} \
catch( ... ) \
{ \
AppException regex( "Failed to update service state [unknown reason]" ); \
regex.setPid( m_SessionId ); \
regex.setEventType( EventType::Error ); \
UploadMessage( regex ); \
return; \
}