From b76bf999477502fbdfd17876cab7412d60d18dd5 Mon Sep 17 00:00:00 2001 From: Patrick Mahoney Date: Wed, 1 Feb 2012 21:32:08 -0600 Subject: [PATCH] Add additional mach error codes. --- lib/mach/error.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/mach/error.rb b/lib/mach/error.rb index 34c8104..ec931ef 100644 --- a/lib/mach/error.rb +++ b/lib/mach/error.rb @@ -8,8 +8,10 @@ module Mach class PROTECTION_FAILURE < Error; end class NO_SPACE < Error; end class INVALID_ARGUMENT < Error; end - class INVALID_NAME < Error; end class FAILURE < Error; end + class ABORTED < Error; end + class INVALID_NAME < Error; end + class OPERATION_TIMED_OUT < Error; end include Functions @@ -20,7 +22,9 @@ module Mach when 3; then NO_SPACE when 4; then INVALID_ARGUMENT when 5; then FAILURE + when 14; then ABORTED when 15; then INVALID_NAME + when 49; then OPERATION_TIMED_OUT else FAILURE end