Add additional mach error codes.

This commit is contained in:
Patrick Mahoney 2012-02-01 21:32:08 -06:00
parent ffe1298731
commit b76bf99947
1 changed files with 5 additions and 1 deletions

View File

@ -8,8 +8,10 @@ module Mach
class PROTECTION_FAILURE < Error; end class PROTECTION_FAILURE < Error; end
class NO_SPACE < Error; end class NO_SPACE < Error; end
class INVALID_ARGUMENT < Error; end class INVALID_ARGUMENT < Error; end
class INVALID_NAME < Error; end
class FAILURE < Error; end class FAILURE < Error; end
class ABORTED < Error; end
class INVALID_NAME < Error; end
class OPERATION_TIMED_OUT < Error; end
include Functions include Functions
@ -20,7 +22,9 @@ module Mach
when 3; then NO_SPACE when 3; then NO_SPACE
when 4; then INVALID_ARGUMENT when 4; then INVALID_ARGUMENT
when 5; then FAILURE when 5; then FAILURE
when 14; then ABORTED
when 15; then INVALID_NAME when 15; then INVALID_NAME
when 49; then OPERATION_TIMED_OUT
else FAILURE else FAILURE
end end