23 |
* |
* |
24 |
* Authors: |
* Authors: |
25 |
* Nicolai P Guba |
* Nicolai P Guba |
|
* Chris Smith |
|
26 |
*/ |
*/ |
27 |
|
using DotGNU.XmlRpc; |
28 |
|
|
29 |
namespace DotGNU.DGEE.Protocols.XmlRpc |
namespace DotGNU.DGEE.Protocols.XmlRpc |
30 |
{ |
{ |
|
using System; |
|
|
using System.Text; |
|
|
using DotGNU.XmlRpc; |
|
|
|
|
31 |
/// <summary> |
/// <summary> |
32 |
/// Error Handler for the XmlRpc Web Service Protocol |
/// Error Handler for the XmlRpc Web Service Protocol |
33 |
/// </summary> |
/// </summary> |
34 |
/// |
/// |
35 |
class XmlRpcErrorHandler: IWebServiceErrorHandler |
class XmlRpcErrorHandler: IWebServiceErrorHandler |
36 |
{ |
{ |
|
StringBuilder buf; |
|
|
|
|
37 |
public String GetError( Exception e ) |
public String GetError( Exception e ) |
38 |
{ |
{ |
39 |
XmlRpcException ex = (XmlRpcException)e; |
XmlRpcException ex = (XmlRpcException)e; |
40 |
|
return ex.ToString(); |
|
buf = new StringBuilder(); |
|
|
buf.Append ("Error"); |
|
|
return buf.ToString(); |
|
41 |
} |
} |
42 |
} |
} |
43 |
} |
} |