---
title: "How run-time error is handled in Erlang?"  
description: "How run-time error is handled in Erlang?"  
author: "Anonymous User"  
published: 2015-06-24  
updated: 2020-09-24  
canonical: https://www.mindstick.com/interview/2657/how-run-time-error-is-handled-in-erlang  
category: "erlang"  
tags: ["functional programming", "concurrent programming", "erlang"]  
reading_time: 1 minute  

---

# How run-time error is handled in Erlang?

It is possible to prevent run-time errors and other exceptions from causing the process to terminate by using Catch or Try. Catch Expr returns the value of expression unless an exception occurs during the evaluation. Try Exprs is the enhancement of catch with ability to identify the exception class and choose to handle the desired one.

## Answers

### Answer by Anonymous User

It is possible to prevent run-time errors and other exceptions from causing the process to terminate by using Catch or Try. Catch Expr returns the value of expression unless an exception occurs during the evaluation. Try Exprs is the enhancement of catch with ability to identify the exception class and choose to handle the desired one.


---

Original Source: https://www.mindstick.com/interview/2657/how-run-time-error-is-handled-in-erlang

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
