Skip to content

Commit bf16d16

Browse files
committed
Move Error to its own section and document ResponseError
1 parent 12d7107 commit bf16d16

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

‎Doc/library/xmlrpc.client.rst‎

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,6 @@ between conformable Python objects and XML on the wire.
156156
See https://ws.apache.org/xmlrpc/types.html for a description.
157157

158158

159-
.. exception:: Error
160-
161-
Base class of the :exc:`Fault` and :exc:`ProtocolError` exceptions.
162-
163-
164159
.. seealso::
165160

166161
`XML-RPC HOWTO <https://tldp.org/HOWTO/XML-RPC-HOWTO/index.html>`_
@@ -364,6 +359,23 @@ The client gets the image and saves it to a file::
364359
with open("fetched_python_logo.jpg", "wb") as handle:
365360
handle.write(proxy.python_logo().data)
366361

362+
.. _error-objects:
363+
364+
Error Objects
365+
-------------
366+
367+
.. exception:: Error
368+
369+
Base class of the :exc:`Fault`, :exc:`ProtocolError` and
370+
:exc:`ResponseError` exceptions.
371+
372+
373+
.. exception:: ResponseError
374+
375+
Raised when an XML-RPC response is malformed and cannot be unmarshalled,
376+
for example when it contains an unsupported type tag.
377+
378+
367379
.. _fault-objects:
368380

369381
Fault Objects

0 commit comments

Comments
 (0)