From 2543a5b27842216a25360016c590aca853fb0cbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriele=20H=C3=B6fler?= Date: Fri, 26 Jul 2019 12:03:04 +0200 Subject: [PATCH] Doc-Strings for Exceptions --- sru/almasru.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sru/almasru.py b/sru/almasru.py index df882e1..6e5be4c 100644 --- a/sru/almasru.py +++ b/sru/almasru.py @@ -27,23 +27,25 @@ from xml.etree.ElementTree import fromstring, Element class SruException(Exception): - pass + """Base Exception for all SRU related operations.""" class NoRecord(SruException): - pass + """Return Exception if SRU query returns zero records.""" class NotUnique(SruException): - pass + """Return Exception for query of unique records that returns more than one record.""" class TooManyRecords(SruException): - pass + """Return Exception if more than 10k records were found by the query. + + Alma SRU does not support requesting more than 10k records.""" class SruDiagnostics(SruException): - pass + """Return the error that was provided by Alma SRU.""" class RecordRetriever: -- GitLab