Commit 98d52988 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

[2379] Add InvalidOperation to the pydnspp exceptions

parent 75effbfc
......@@ -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);
......
......@@ -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
......
......@@ -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
......
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment