コード例 #1
0
 public void SetError(Exception error)
 {
     var sb = new StringBuilder ();
     sb.Append (error.Message);
     sb.AppendLine ();
     sb.Append (error.ToString());
     // TODO: in another version there will be support for Class and Code of error
     Error = new ServerError(-1, -1, sb.ToString());
 }
コード例 #2
0
 public void SetError(Exception error)
 {
     // TODO: in another version there will be support for Class and Code of error
     Error = new ServerError(-1, -1, error.Message);
 }