BIND 10 trac802, updated. 0dedcdb128646fdbf37be96f91076adda2f37c95 [802] Description of the exceptions
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Nov 23 15:23:12 UTC 2011
The branch, trac802 has been updated
via 0dedcdb128646fdbf37be96f91076adda2f37c95 (commit)
via fc6a79af0d625ca18a2cdc3df91e86e8c1e02f9c (commit)
from 9150be5e5d0d6c0a46e44a0bbcdbd235c74bd6a7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0dedcdb128646fdbf37be96f91076adda2f37c95
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Wed Nov 23 16:22:48 2011 +0100
[802] Description of the exceptions
commit fc6a79af0d625ca18a2cdc3df91e86e8c1e02f9c
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Wed Nov 23 16:20:12 2011 +0100
[802] Add it to the makefile
-----------------------------------------------------------------------
Summary of changes:
src/lib/python/isc/bind10/Makefile.am | 3 ++-
src/lib/python/isc/bind10/socket_cache.py | 16 ++++++++++++++--
2 files changed, 16 insertions(+), 3 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/python/isc/bind10/Makefile.am b/src/lib/python/isc/bind10/Makefile.am
index c0f1e32..aa5d0ab 100644
--- a/src/lib/python/isc/bind10/Makefile.am
+++ b/src/lib/python/isc/bind10/Makefile.am
@@ -1,4 +1,5 @@
SUBDIRS = . tests
-python_PYTHON = __init__.py sockcreator.py component.py special_component.py
+python_PYTHON = __init__.py sockcreator.py component.py special_component.py \
+ socket_cache.py
pythondir = $(pyexecdir)/isc/bind10
diff --git a/src/lib/python/isc/bind10/socket_cache.py b/src/lib/python/isc/bind10/socket_cache.py
index 0339203..8ceeef1 100644
--- a/src/lib/python/isc/bind10/socket_cache.py
+++ b/src/lib/python/isc/bind10/socket_cache.py
@@ -17,9 +17,21 @@
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:
"""
More information about the bind10-changes
mailing list