Encapsulate successful or failed function execution · HackerTrans