Browse Source

[802] Description of the exceptions

Michal 'vorner' Vaner 13 years ago
parent
commit
0dedcdb128
1 changed files with 14 additions and 2 deletions
  1. 14 2
      src/lib/python/isc/bind10/socket_cache.py

+ 14 - 2
src/lib/python/isc/bind10/socket_cache.py

@@ -17,9 +17,21 @@
 Here's the cache for sockets from socket creator.
 Here's the cache for sockets from socket creator.
 """
 """
 
 
-class SocketError(Exception): pass
+class SocketError(Exception):
+    """
+    Exception raised when the socket creator is unable to create requested
+    socket. Possible reasons might be the address it should be bound to
+    is already taken, the permissions are unsufficient, the address family
+    is not supported on this computer and many more.
+    """
+    pass
 
 
-class ShareError(Exception): pass
+class ShareError(Exception):
+    """
+    Such socket is already taken by other component and the sharing
+    parameters doesn't allow sharing with the new request.
+    """
+    pass
 
 
 class Cache:
 class Cache:
     """
     """