Learn about the finally block on frontier calls

The java finally

The finally block is used in Java to make sure a specific code block gets executed even when the enclosed try-catch block throws an Exception.

The frontiers finally

We borrowed the finally from the java language and we brought it to the frontier calls, allowing you to specify a function to be executed at last even when something goes wrong with the call:

        //Handle success here
        //Handle errors here
        //You know what to do

We are done here. You already know how to specify a finally block.

Github Repository