From 40d76e97f5135f9fd4ca9cb019d6eac7f40f9e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ho=CC=88ltje?= Date: Mon, 11 Jan 2016 10:32:20 -0500 Subject: Modified all exceptions to have a common parent Closes #98 --- lib/mixlib/shellout/exceptions.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/mixlib/shellout/exceptions.rb b/lib/mixlib/shellout/exceptions.rb index 16b1946..af79721 100644 --- a/lib/mixlib/shellout/exceptions.rb +++ b/lib/mixlib/shellout/exceptions.rb @@ -1,7 +1,8 @@ module Mixlib class ShellOut - class ShellCommandFailed < RuntimeError; end - class CommandTimeout < RuntimeError; end - class InvalidCommandOption < RuntimeError; end + class Error < RuntimeError; end + class ShellCommandFailed < Error; end + class CommandTimeout < Error; end + class InvalidCommandOption < Error; end end end -- cgit v1.2.1