Skip to content

Commit 38b8ada

Browse files
committed
Catching exceptions (#14280)
1 parent e29248a commit 38b8ada

File tree

1 file changed

+8
-0
lines changed
  • include/ydb-cpp-sdk/client/types/status

1 file changed

+8
-0
lines changed

include/ydb-cpp-sdk/client/types/status/status.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ class TYdbErrorException : public TYdbException {
6161
return out << e.Status_;
6262
}
6363

64+
const TStatus& GetStatus() const {
65+
return Status_;
66+
}
67+
68+
TStatus&& ExtractStatus() {
69+
return std::move(Status_);
70+
}
71+
6472
private:
6573
TStatus Status_;
6674
};

0 commit comments

Comments
 (0)