Posts

Showing posts with the label exceptions in ruby language

Exceptions in Ruby and its types

Hi, This is  Shubham Mishra  from India,  this is the part of  Ruby on Rails  exploration journey.  In this post we will discuss about the ruby's some special concepts and I am sure you will get excited to make your hands dirty with those code, so why to wait let's get started... Popular programming language Ruby is renowned for its ease of use and adaptability. Unfortunately, Ruby is susceptible to mistakes that can happen while executing code, just like any other programming language. These mistakes are known as exceptions, and Ruby includes a sophisticated method for dealing with them. We'll go through exceptions in this blog post, including what they are, how Ruby handles them, and the many kinds of exceptions you might run against. What are exceptions in Ruby? A programming error is an exception. It takes place while the programme is running. When an exception occurs, Ruby leaps to a predetermined section of code known as a "rescue" block, interr...