Skip to content


Concepts and Principles




API Explorer


Release Notes

TORO Integrate

Coder Studio

Coder Cloud

Bug Reports


Gloop Block Icon


Block Steps in Gloop are the same as using braces ({}) in Java and other languages. Block Steps are used to group steps together, and are also used to wrap steps in try-catch, try-finally, and try-catch-finally parts. Also, any declared variable inside a Block Step will only be visible to its children - similar to variable scopes in Java.

The type of Block Step can be changed by setting its Block Type property. When the Block Step is selected, simply click and choose the new Block Type in the Properties view:

Changing a Block Step's type

Exception Handling in Gloop

When a Gloop Service encounters an exception, it will iterate up the Gloop stack trace until it finds a catch block (exactly the same way it would in Java). If no catch is found, the exception is thrown out of the Gloop Engine and back to TORO Integrate.

When you are in the catch section of a Block Step in Coder Cloud, a new variable called $gloopException will appear, which wraps the underlying exception that was thrown. This is where you should handle exceptions.

The catch section of a Block Step

The catch section of a Block Step

Ways to Add a Block Step

Like any other step in Gloop, you can use the add button, hot keys, or the content assist menu to add a Block Step. However, Coder also has some convenient, pre-configured entries in the content assist, too! These extra selections allow you to add pre-configured Block Steps in any format you like (try-catch, try-finally, try-catch-finally).

Adding a Block Step

Quick fixes

Coder also detects when you have a step in your service that throws an exception and isn't wrapped in a try-catch. Fortunately, it's quick and easy to fix! When a warning or error presents itself in Gloop, right clicking on the icon will present you with a list of options to try and fix it.

Coder Studio quick fix feature