Posted On April 2, 2019

Explain Try and Catch Block

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Explain Try and Catch Block
try {
Execute function X;
Execute function Y;
}
catch
{
Execute this when any function fails: X or Y;
}
finally
{
Execute function Z regardless whether X or Y fails;
}

# Note: if a “break,” “continue,” “return,” or “exit” command is triggered inside this block, the block will immediately get out of scope.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Excel MD5 Hash Function

Go to the VB editor (Alt-F11), right-click on your workbook in theproject window, and click…

PowerShell: How to Create Multiple Arrays or Columns from an Array

# This snippets scans the localhost for common ports and outputs 4 arrays $limitPorts=10000 $netstat=netstat…

Java Virtual Machine Optimal Memory Tuning

Overview: There are five available garbage collectors (GC) for Java Virtual Machines (JVM). Here are…