Skip to content
Permalink
Browse files

more error types

  • Loading branch information
alex committed May 27, 2013
1 parent 9bcd59c commit 39bac357e6e3bf73d180608d0467268ba83073ef
Showing with 12 additions and 0 deletions.
  1. +9 −0 lib-topaz/errno.rb
  2. +3 −0 topaz/error.py
@@ -4,4 +4,13 @@ class ENOENT < SystemCallError

class ECHILD < SystemCallError
end

class EACCES < SystemCallError
end

class ENOTDIR < SystemCallError
end

class ENOTEMPTY < SystemCallError
end
end
@@ -29,6 +29,9 @@ def print_traceback(space, w_exc, top_filepath=None):
_errno_for_oserror_map = {
errno.ENOENT: "ENOENT",
errno.ECHILD: "ECHILD",
errno.EACCES: "EACCES",
errno.ENOTDIR: "ENOTDIR",
errno.ENOTEMPTY: "ENOTEMPTY",
}


0 comments on commit 39bac35

Please sign in to comment.
You can’t perform that action at this time.