Home | History | Annotate | Download | only in python2.7

Lines Matching defs:Fault

19 # 1999-02-02 fl  Added fault handling, handle empty sequences, etc.
104 Fault Indicates an XML-RPC fault package
133 dumps Convert an argument tuple or a Fault instance to an XML-RPC
261 # Indicates an XML-RPC fault response package. This exception is
263 # a fault string. This exception can also used as a class, to
264 # generate a fault XML-RPC message.
266 # @param faultCode The XML-RPC fault code.
267 # @param faultString The XML-RPC fault string.
269 class Fault(Error):
270 """Indicates an XML-RPC fault package."""
277 "<Fault %s: %s>" %
595 to an XML-RPC params chunk. To write a fault response, pass a
596 Fault instance instead. You may prefer to use the "dumps" module
615 if isinstance(values, Fault):
616 # fault instance
617 write("<fault>\n")
621 write("</fault>\n")
792 if self._type == "fault":
793 raise Fault(**self._stack[0])
922 self._type = "fault"
923 dispatch["fault"] = end_fault
956 raise Fault(item['faultCode'], item['faultString'])
1021 target = FastUnmarshaller(True, False, _binary, mkdatetime, Fault)
1034 # Convert a Python tuple or a Fault instance to an XML-RPC packet.
1037 # @param params A tuple or Fault instance.
1050 Convert an argument tuple or a Fault instance to an XML-RPC
1069 assert isinstance(params, TupleType) or isinstance(params, Fault),\
1070 "argument must be tuple or Fault instance"
1072 if isinstance(params, Fault):
1105 # a method response, or a fault structure
1118 # represents a fault condition, this function raises a Fault exception.
1123 # @see Fault
1131 If the XML-RPC packet represents a fault condition, this function
1132 raises a Fault exception.
1298 except Fault: