Beispiel #1
0
    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();
    }
    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();
    }
Beispiel #3
0
 public void WriteMethodResponse( Exception e )
 {
   XmlRpcException ex = new XmlRpcException( e );
   WriteMethodResponse( ex );
 }
 public void WriteMethodResponse( Exception e )
 {
   XmlRpcException ex = new XmlRpcException( e );
   WriteMethodResponse( ex );
 }