Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
98d52988
Commit
98d52988
authored
Dec 06, 2012
by
Jelte Jansen
Browse files
[2379] Add InvalidOperation to the pydnspp exceptions
parent
75effbfc
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/lib/dns/python/pydnspp.cc
View file @
98d52988
...
...
@@ -777,6 +777,10 @@ PyInit_pydnspp(void) {
po_IscException
=
PyErr_NewException
(
"pydnspp.IscException"
,
NULL
,
NULL
);
PyModule_AddObject
(
mod
,
"IscException"
,
po_IscException
);
po_InvalidOperation
=
PyErr_NewException
(
"pydnspp.InvalidOperation"
,
NULL
,
NULL
);
PyModule_AddObject
(
mod
,
"InvalidOperation"
,
po_InvalidOperation
);
po_InvalidParameter
=
PyErr_NewException
(
"pydnspp.InvalidParameter"
,
NULL
,
NULL
);
PyModule_AddObject
(
mod
,
"InvalidParameter"
,
po_InvalidParameter
);
...
...
src/lib/dns/python/pydnspp_common.cc
View file @
98d52988
...
...
@@ -47,6 +47,7 @@ namespace dns {
namespace
python
{
// For our 'general' isc::Exceptions
PyObject
*
po_IscException
;
PyObject
*
po_InvalidOperation
;
PyObject
*
po_InvalidParameter
;
// For our own isc::dns::Exception
...
...
src/lib/dns/python/pydnspp_common.h
View file @
98d52988
...
...
@@ -28,6 +28,7 @@ namespace dns {
namespace
python
{
// For our 'general' isc::Exceptions
extern
PyObject
*
po_IscException
;
extern
PyObject
*
po_InvalidOperation
;
extern
PyObject
*
po_InvalidParameter
;
// For our own isc::dns::Exception
...
...
src/lib/python/isc/datasrc/tests/testdata/example.com.ch
0 → 100644
View file @
98d52988
example.com. 1000 CH SOA a.dns.example.com. mail.example.com. 1 1 1 1 1
example.com. 1000 CH NS a.dns.example.com.
example.com. 1000 CH NS b.dns.example.com.
example.com. 1000 CH NS c.dns.example.com.
a.dns.example.com. 1000 CH A 1.1.1.1
b.dns.example.com. 1000 CH A 3.3.3.3
b.dns.example.com. 1000 CH AAAA 4:4::4:4
b.dns.example.com. 1000 CH AAAA 5:5::5:5
src/lib/python/isc/datasrc/tests/testdata/example.com.source.sqlite3
0 → 100644
View file @
98d52988
File added
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment