---
title: "Discussion on \"What are exceptions & Why They Happen?\" | Hashnode"
description: "Discussion on \"What are exceptions & Why They Happen?\". In Ruby, Exceptions are used to signal an error condition when the program is not able to finish its work in the current state."
url: "https://hashnode.com/posts/what-are-exceptions-and-why-they-happen/60dde814e51e523e9b7e4878"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What are exceptions & Why They Happen?](https://subashkhatri.hashnode.dev/what-are-exceptions-and-why-they-happen?utm_source=hashnode&utm_medium=feed)

In Ruby, Exceptions are used to signal an error condition when the program is not able to finish its work in the current state.

Jul 1, 2021 · 3 min read · subashkhatri.hashnode.dev  
Read the article

-   [#ruby](https://hashnode.com/tag/ruby)
-   [#ruby-on-rails](https://hashnode.com/tag/ruby-on-rails)

## Written by

[Subash Khatri](https://hashnode.com/@khatrisubash)

@khatrisubash

  
[View profile](https://hashnode.com/@khatrisubash)

programming

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
