Lines Matching +full:self +full:- +full:describing
26 zfs.util.dev -- a file object of /dev/zfs """
46 def default_repr(self): argument
48 if self.__slots__:
49 str = "<" + self.__class__.__name__
50 for v in self.__slots__:
51 str += " %s: %r" % (v, getattr(self, v))
55 (self.__class__.__name__, repr(self.__dict__))
58 """This exception class represents a potentially user-visible
62 errno -- the error number (eg, from ioctl(2))."""
67 def __init__(self, eno, task=None, why=None): argument
69 eno -- the error number (errno)
70 task -- a string describing the task that failed
71 why -- a string describing why it failed (defaults to
74 self.errno = eno
75 self.task = task
76 self.why = why
78 def __str__(self): argument
80 if self.task:
81 s += self.task + ": "
82 if self.why:
83 s += self.why
85 s += self.strerror
111 def strerror(self): argument
112 return ZFSError.__strs.get(self.errno, os.strerror(self.errno))
126 elif n >= 100 or num & ((1024*index)-1) == 0: