summaryrefslogtreecommitdiff
path: root/dns/exception.py
Commit message (Collapse)AuthorAgeFilesLines
* Transaction support.Bob Halley2020-08-101-1/+1
|
* Wrap exceptions from rdata from_text() and from_wire().wrapBob Halley2020-07-261-0/+14
|
* Minor Python 3 cleanups.Brian Wellington2020-06-031-3/+3
| | | | | | | Classes inherit from object by default; there's no need to explicitly include this. Replace super(Foo, self) with super().
* update copyrightBob Halley2018-12-011-0/+2
|
* Upgrade Python syntax with pyupgrade https://github.com/asottile/pyupgradeHugo2018-09-061-1/+1
|
* Exception docBob Halley2017-01-021-24/+22
|
* fix restructured text issuesBob Halley2016-12-311-6/+6
|
* fix minor doco errors.Bob Halley2016-09-201-2/+2
|
* Pass partial answer when raising DNSException, added unit testsClaudio Luck2016-06-131-2/+6
|
* Fix typosJakub Wilk2016-05-261-1/+1
|
* Do not reference docstrings in exception formatting as they may be stripped.Bob Halley2016-05-121-1/+1
| | | | [issue #154]
* python3 supportArthur Gautier2016-04-211-0/+10
| | | | Signed-off-by: Arthur Gautier <baloo@gandi.net>
* Return timeout duration as part of str(Timeout).Petr Spacek2015-03-251-0/+2
|
* Separate class docstring and default str() messages in DNSException.Petr Spacek2015-03-251-4/+9
| | | | | | str() for non-parametrized exceptions still defaults to class docstring but now it is possible to simply override the message by defining class.msg variable.
* Add list pretty-printing for parametrized exceptions.Petr Spacek2015-03-251-1/+20
| | | | | | All list entries are converted to strings before the list is printed. I.e. one-item list is printed as 'vm-123.idm.lab.eng.brq.redhat.com. IN NS' instead [<DNS vm-123.idm.lab.eng.brq.redhat.com. IN NS RRset>].
* Add support for parametrizable __str__ in DNSException.Petr Spacek2015-03-241-2/+50
| | | | | | | | | | | | This change makes __init__ and __str__ parametrization simpler and keeps backward compatiblity with old code which does not use keyword arguments in raise(). Parametrized __str__ can be implemented simply by defining "fmt" and "supp_kwargs" class variables in particular exception class. Doc string is used in cases where specific message parameters were not provided during instantiation/raise.
* Remove redundant 'pass' from class definitions.Petr Spacek2015-02-121-5/+0
|
* Amend doc strings for all DNSExceptions to make them suitable for direct ↵Petr Spacek2015-02-121-3/+3
| | | | printing.
* Support string representation for all DNSExceptions.Petr Spacek2015-02-121-1/+6
| | | | | Doc string is used in cases where more specific message was not provided during instantiation/raise.
* update copyrightsBob Halley2011-05-121-1/+1
|
* update copyrights for 2010Bob Halley2010-01-131-1/+1
|
* update copyrightsBob Halley2009-06-181-1/+1
|
* update copyrights for 2007Bob Halley2007-01-011-1/+1
|
* update copyrightsBob Halley2005-09-021-1/+1
| | | | | Original author: Bob Halley <halley@dnspython.org> Date: 2005-01-08 08:13:48
* remove cvs $Id$ tagsBob Halley2005-09-021-2/+0
| | | | | Original author: Bob Halley <halley@dnspython.org> Date: 2004-07-31 09:51:40
* initial importBob Halley2005-09-021-0/+42
Original author: Bob Halley <halley@dnspython.org> Date: 2004-03-23 21:57:40