Category Archives: Ruby

Ruby Exception Handling

Ruby Exception Handling: ConverterNotFoundError

As our exploration through the Ruby Exception Handling series continues, today we’ll be examining the ConverterNotFoundError. ConverterNotFoundErrors appear in Ruby when attempting to use any of the variety of transcoding methods provided by Ruby, but in doing so, passing an invalid converter that Ruby isn’t aware of. In the meat of this article we’ll explore… continue reading →

Ruby Exception Handling

Ruby Exception Handling: SignalException

Next on the docket for our Ruby Exception Handling series, we’re taking a look at the SignalException class. SignalException is a subclass descendant of the Exception superclass, and occurs when a process monitored by Ruby receives a signal via the operating system. In this post we’ll explore the SignalException class, examining where it lands within Ruby’s Exception class hierarchy, how to handle SignalException errors,… continue reading →

Ruby Exception Handling

Ruby Exception Handling: Interrupt

Today as we continue our journey through the wide world of Ruby Exception Handling, we’re going to examine the Interrupt exception class. Interrupt is a subclass descendant of the Exception superclass, and occurs when a specific interrupt signal is received by the active Ruby process, such as when the user manually halts via Ctrl-C. In this article we’ll… continue reading →

Ruby Exception Handling

Ruby Exception Handling: ArgumentError

As our journey through the Ruby Exception Handling series continues, today we’ll be taking a closer look at the ArgumentError. ArgumentError is a descendant class of the StandardError superclass, and is typically raised when arguments passed to a method are incorrect, unexpected, or invalid in some way. In this article we’ll dive deeper into our examination of… continue reading →

Ruby Exception Handling

Ruby Exception Handling: SecurityError

As we plow ahead through our adventure with the Ruby Exception Handling series, today we’re examining the SecurityError exception class, which is raised anytime Ruby attempts a potentially unsafe operation. Throughout this post we’ll examine what can cause a SecurityError and how to configure your application to avoid them wherever possible, so let’s get started! The… continue reading →

Ruby Exception Handling

Ruby Exception Handling: NotImplementedError

Next on the docket for our Ruby Exception Handling series, we’re taking a look at the NotImplementedError exception class. NotImplementedError is a subclass descendant of the ScriptError superclass, and occurs when Ruby attempts to utilize a feature or method that isn’t implemented for the current platform or Ruby installation. In this post we’ll explore the NotImplementedError class, examining where it… continue reading →

Ruby Exception Handling

Ruby Exception Handling: SyntaxError

Today we continue our in-depth Ruby Exception Handling series with a dive into the SyntaxError exception class. SyntaxError is a subclass descendant of the ScriptError superclass, and pops up anytime Ruby attempts to execute invalid code syntax. In this piece we’ll examine the SyntaxError class, looking at exactly where it fits into Ruby’s Exception class hierarchy, how to deal with SyntaxErrors, and the… continue reading →

Ruby Exception Handling

Ruby Exception Handling: LoadError

Chugging right along through our Ruby Exception Handling series, our next stop takes us to the LoadError exception class. LoadError is a subclass descendant of the ScriptError superclass, and occurs when Ruby attempts to load a file (via require or otherwise) that simply doesn’t exist. In this post we’ll examine LoadError in a bit more detail, looking at where this exception… continue reading →