Skip to content

Commit e29b3d6

Browse files
delete (message, status) constructor from YdbException
1 parent 79f661b commit e29b3d6

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/Ydb.Sdk/src/Ado/YdbException.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,6 @@ public YdbException(Status status) : base(status.ToString())
2222
// TODO: Add SQLSTATE message with order with https://en.wikipedia.org/wiki/SQLSTATE
2323
}
2424

25-
public YdbException(string message, Status status) : base(message + ": " + status)
26-
{
27-
Code = status.StatusCode;
28-
var policy = RetrySettings.DefaultInstance.GetRetryRule(status.StatusCode).Policy;
29-
30-
IsTransient = policy == RetryPolicy.Unconditional;
31-
IsTransientWhenIdempotent = policy != RetryPolicy.None;
32-
// TODO: Add SQLSTATE message with order with https://en.wikipedia.org/wiki/SQLSTATE
33-
}
34-
3525
public override bool IsTransient { get; }
3626

3727
public bool IsTransientWhenIdempotent { get; }

src/Ydb.Sdk/src/Ado/YdbSchema.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private static async Task AppendDescribeTable(
162162
{
163163
ydbConnection.Session.OnStatus(status);
164164

165-
throw new YdbException("Error on DescribeTable", status);
165+
throw new YdbException(status);
166166
}
167167

168168
var describeRes = describeResponse.Operation.Result.Unpack<DescribeTableResult>();

0 commit comments

Comments
 (0)