Ruby’s New Exception Keyword Argumentsexception: false and exception: true In Ruby 2.6, a variety of Kernel methods get a new exception: false or exception: true keyword argument. When Kernel methods fail, some raise an error and some just return nil. This new feature lets you override that default behavior. TL;DR: In Ruby 2.6 these examples will all work: system 'not-a-command', exception: true #
![Ruby’s New Exception Keyword Arguments](https://cdn-ak-scissors.b.st-hatena.com/image/square/f3330d534c3bdea0340cf2e891a80620ad6d23fc/height=288;version=1;width=512/https%3A%2F%2Fimages.ctfassets.net%2F1wryd5vd9xez%2F3xNoYzg0g6vV7Y7xJzT6e6%2F82eed0fc9af12163b8ce78dd863a6947%2Fhttps___cdn-images-1.medium.com_max_3152_1_VBoB1xkrAHenqX6NwFiWhw.png%3Fw%3D1576%26h%3D704%26q%3D100%26fm%3Dpng)