---
layout: docs
title: addFinallyBlock
id: class.Facebook.HackCodegen.HackBuilder.addFinallyBlock
docid: class.Facebook.HackCodegen.HackBuilder.addFinallyBlock
permalink: /docs/reference/class.Facebook.HackCodegen.HackBuilder.addFinallyBlock/
---
# Facebook\\HackCodegen\\HackBuilder::addFinallyBlock()




Start a finally block




``` Hack
public function addFinallyBlock(): this;
```




## Returns




+ ` this `