use MessageFactory to log the error message in #tc_exception