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()); }
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); }