Tag: exception

  • Wrapped exceptions in Ruby

    Sometimes you want to raise an exception when a method fails but without losing information about an inner exception. Let me explain it with an example. At Watu we have a method that causes a user to be indexed in our search engine. This method is called many times in different situations. One of those…