public void Write( XmlRpcException e ) { if(e == null) { throw new ArgumentNullException("e", "Argument cannot be null"); } WriteStartDocument(); WriteMethodResponse(); WriteStartElement( "fault" ); XmlRpcStruct s = new XmlRpcStruct(); s.Add( "faultCode", e.FaultCode ); s.Add( "faultString", e.Message ); WriteValue( s ); WriteEndElement(); WriteEndDocument(); }