[metasrv] Refactor metasrv errors #4000
Labels
A-meta
Area: databend meta serive
C-improvement
Category: improvement
C-refactoring
Category: refactor
Now we use ErrorCode as the error return type for most of metasrv's functions, but this makes it difficult to get the underlying error, and we would like to remove ErrorCode and only wrap it to ErrorCode when it is returned to the query side.
thiserror
defines some concrete error type with aMetaError
for including these error types just likeErrorCode
.The text was updated successfully, but these errors were encountered: