Home | History | Annotate | Download | only in xmlrpc

Lines Matching defs:Fault

19 # 1999-02-02 fl  Added fault handling, handle empty sequences, etc.
100 Fault Indicates an XML-RPC fault package
125 dumps Convert an argument tuple or a Fault instance to an XML-RPC
226 # Indicates an XML-RPC fault response package. This exception is
228 # a fault string. This exception can also be used as a class, to
229 # generate a fault XML-RPC message.
231 # @param faultCode The XML-RPC fault code.
232 # @param faultString The XML-RPC fault string.
234 class Fault(Error):
235 """Indicates an XML-RPC fault package."""
465 to an XML-RPC params chunk. To write a fault response, pass a
466 Fault instance instead. You may prefer to use the "dumps" module
485 if isinstance(values, Fault):
486 # fault instance
487 write("<fault>\n")
491 write("</fault>\n")
655 if self._type == "fault":
656 raise Fault(**self._stack[0])
808 self._type = "fault"
809 dispatch["fault"] = end_fault
842 raise Fault(item['faultCode'], item['faultString'])
911 target = FastUnmarshaller(True, False, mkbytes, mkdatetime, Fault)
922 # Convert a Python tuple or a Fault instance to an XML-RPC packet.
925 # @param params A tuple or Fault instance.
938 Convert an argument tuple or a Fault instance to an XML-RPC
957 assert isinstance(params, (tuple, Fault)), "argument must be tuple or Fault instance"
958 if isinstance(params, Fault):
989 # a method response, or a fault structure
1002 # represents a fault condition, this function raises a Fault exception.
1007 # @see Fault
1015 If the XML-RPC packet represents a fault condition, this function
1016 raises a Fault exception.
1172 except Fault: