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