forked from TrueCloudLab/frostfs-sdk-go
[#140] apistatus: Support OBJECT_ALREADY_REMOVED
error
Define `ObjectAlreadyRemoved` type for `OBJECT_ALREADY_REMOVED` code. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
ff3826ae6b
commit
f1e46d35de
3 changed files with 44 additions and 0 deletions
|
@ -64,6 +64,8 @@ func FromStatusV2(st *status.Status) Status {
|
|||
decoder = new(ObjectAccessDenied)
|
||||
case object.StatusNotFound:
|
||||
decoder = new(ObjectNotFound)
|
||||
case object.StatusAlreadyRemoved:
|
||||
decoder = new(ObjectAlreadyRemoved)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue